views:

72

answers:

3

Hello,

I need a C# to VB.NET code converter, and I'm willing to pay. I want something that's ultra convenient, as I want to reduce the amount of copy/paste that I have to do... so could anybody give me some tips to what is out there? I want processing in bulk too, and to support the latest operations (LINQ, new VB inline-function support and all).

Thanks.

+2  A: 

Online:

http://www.developerfusion.com/tools/convert/csharp-to-vb/

JeremySpouken
I have been using for years with good success. Does not handle LINQ, but that is not too much of a problem.
AMissico
Looks like single file only? I need something to do in bulk. Not interested in the free ones. converter.telerik.com has a utility to copy files in bulk, but it doesn't work. It errors on me.
Brian
A: 

One roundabout way to go about it is to disassemble an assembly using RedGate's .NET Reflector, and export the VB/C# code.

Reflector can loose some of the code flavor in the conversion/dissassembly, but I've always been able to get it to compile.

I've used several free tools online, but have found their correctness to be spotty at best. The one @Jeremy refers to is fairly decent, but lacks some recent .NET features. Odds are it will meet your needs.

kbrimington
+1  A: 

I have Tangible Software's Instant VB that I use. It seams to work very well. It will do LINQ, Full projects, files and snippets.

http://www.tangiblesoftwaresolutions.com/Product_Details/Instant_VB.html

J. Clay