Is there a library that I can use to convert VB.Net code into C#? There is http://codeconverter.sharpdevelop.net/ but i don't want to use it from a web service.
Open your assembly in .NET Reflector. Choose language C#. Copy/paste source code to Visual Studio. Try to compile.
There are plenty online services: Telerik provides one, here's one other and one of the best is on developer fusion. But these are all online.
I've had good experiences with Instant C# of Tangible Solutions, they provide good services for each bug you encounter after conversion. Other than that, many others are available through Google.
If you use Reflector, a few notes: it doesn't translate your source code, but the compiled code. This can make a huge difference in logic inside methods and above all, you loose all your (xml) comments and possibly your file structure (partial classes are not recognized, for instance). Reflector is virtually unusable when it comes to ASPX and inline code. But it is an excellent free tool in all other respects
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With