VB.net2C#

Can i convert VB.net 2 C# code ?
doan_cdfAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Raynard7Connect With a Mentor Commented:
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx supposedly does this for free - but I have not tried it
0
 
Raynard7Commented:
You can - but you have to do it manually, vb.net and c# both go down to the same intermediate code that is interpreted by the CLR - so they have access to the same essential functions and libraries (even though they are different in operation)
0
 
Leah_Connect With a Mentor Commented:
I have used the site Raynard recommended a lot.

Most of the time if I find a C# example on-line somewhere I can copy it into the convertor and it converts without errors. If there are errors I try breaking down the code into smaller bits.

If you need to convert a large amount of code you might want to consider leaving the code as C# and making it a separate project in your VB .Net solution, like an old style DLL or library.
0
 
kumar_jacCommented:

Plz try this

http://www.carlosag.net/Tools/CodeTranslator/Default.aspx

here you can uplad .vb files and get .cs source.
0
All Courses

From novice to tech pro — start learning today.