• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • Last Modified:

VB.net2C#

Can i convert VB.net 2 C# code ?
0
doan_cdf
Asked:
doan_cdf
  • 2
2 Solutions
 
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
 
Raynard7Commented:
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx supposedly does this for free - but I have not tried it
0
 
Leah_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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now