I tried C# to VB.NET translation with Linq code, so far I have no seen any success yet.
3 Answers, 1 is accepted
0
Todd
Telerik team
answered on 21 Nov 2011, 04:49 PM
Hello Hardy Wang,
Sorry for the trouble converting your LINQ code. Currently, the Code Converter does not well handle LINQ, though we hope it will improve in the future (with improvements to the underlying NRefactory open source engine). For most other C#/VB, the Code Converter should be able to help you convert between the syntaxes.
If you'd like , you can share an example of the LINQ you're trying to convert and we'll use that as reference test for future engine improvements.
var distinctNames =(from row inDataTable.AsEnumerable()select row.Field<string>("Name")).Distinct();
foreach(var name in distinctNames ) {Console.WriteLine(name);}
0
Todd
Telerik team
answered on 23 Jul 2012, 03:07 PM
Thanks, Bruce!
We'll use that as an example as we readdress the underlying conversion engine in the converter. In the meantime, don't miss Telerik's JustDecompile, which has support for both VB and C#. If you have a lot of compiled C# code, JustDecompile could help you translate it to VB, too.