John Herrell's Developer Portfolio

Code Conversion

The other night I took the opportunity to download the source code for the #develop editor, a free open source alternative to Visual Studio .NET. I am very impressed. By using source code from SharpDevelop's NRefactory, I built a little utility to perform code conversions on my site. Unfortunately, my hosting provider runs ASP.NET hosting in Medium Trust, and the code would not work despite my best effort of reworking SharpDevelop's code to work on my hosting provider. Instead, I am using their web service to perform these Code Conversions... guess I lost in one way, won in another.

Back to Code Home Page

Convert VB.NET to C#

Simply paste in your VB.NET code below, and this utility will automatically convert it to its equivalent in C#. Supports .NET 3.5 syntax

Your source code is safe

This site does not permanently store any code submitted via this utility - the data you submit is kept only long enough to convert the code and send the result back to you.

Notice & Issues

The converter uses SharpDevelop's NRefactory to perform the conversion. For the conversion to work properly, you have to paste a full class or source code file because it does not do "magic" RegEx's or string replacement - this code converter uses a full blown parser, and that's why the source code must be valid.

If you encounter a problem such as a wrongly converted statement, feel free to report is via the Bug Reporting Forum. By providing them with a sample of what's not working as expected, they can improve the converter.

Credits

This code conversion tool is based on source code from the #develop editor, a free open source alternative to Visual Studio .NET.