views:

665

answers:

10

Are there any good conversion tools out there to convert VB.Net code to C#?


FREE


PAID

+11  A: 

Developer Fusion .NET Code Converter goes both ways and its a free open source alternative to Visual Studio .NET

TStamper
+3  A: 

I would use a tool like reflector to generate c# based off of the MSIL, rather than trying to do a source level conversion.

You will however lose comments and some variable names this way.

Jason Coyne
+1  A: 

There are several products on the market that you can choose from. I did a google of "vb.net to C# converter" and came up with a variety of results including

JaredPar
+2  A: 

SharpDevelop has a VB.Net to C# converter. You can also back the other way and you can convert to Boo. I've not use the converter, so I make no guarantees on how good it is. However, it is free, and it's a pretty decent IDE for .Net to boot.

dustyburwell
I have tested it and i liked it
Jhonny D. Cano -Leftware-
+4  A: 

I have had good results with VBConversions in the past.

Richard Ev
+2  A: 

Telerik Code Converter allows you to convert code snippets or multiple files from VB to C# or vice-versa.

M4N
A: 

This one has worked great for me.. It has tools to convert back and forth between all .Net languages Also there is a tool for VB6 conversion

http://www.tangiblesoftwaresolutions.com/index.htm

Suneet
+1  A: 
  1. Telerik Converter
  2. VBConversions
Conrad
A: 

Check this good list from IGurr ListOf Wiki

Amr ElGarhy
+1  A: 

You can always compile your code and use reflector on it to decompile it in c#

Juan Manuel