Maybe you are like me mostly using either C# or VB.NET and not developing full time so the syntax is not there in your memory to easily convert back and forth between the languages. You might have found a nice snipped of csharp code and want it in VB.NET.
Here are some options I've used.
Here is a free online converter: http://www.kamalpatel.net/ConvertCSharp2VB.aspx
The free converter can also be downloaded and run offline.
Another online converter can be found here:
http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx
and her:
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx
Another option is to use the free Open Source .NET IDE SharpDevelop http://www.icsharpcode.net/ that has functionality to also convert code. Look at Tools>Convert Buffer C# to VB.NET and Convert Buffer VB.NET to C#.
Restored comments
ReplyDeleteJames Manning said...
Carlos' is really good as well
http://www.carlosag.net/Tools/CodeTranslator/Default.aspx
December 30, 2005
Anonymous said...
If you want to convert VB.Net code to C# and are willing to pay money for a higher quality converter, VBConversions is good. You can download it here
May 28, 2007
.Net code converter is a free online utility to convert your c# code into vb.net code and vb.net code into c# code. Just copy your source code into the box given and click the appropriate button to convert your code.
ReplyDeletehttp://www.all4dotnet.com/convertcode.aspx