Solved

VB.net2C#

Posted on 2006-11-14
6
620 Views
Last Modified: 2012-06-27
Can i convert VB.net 2 C# code ?
0
Comment
Question by:doan_cdf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 35

Expert Comment

by:Raynard7
ID: 17936579
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
 
LVL 35

Accepted Solution

by:
Raynard7 earned 25 total points
ID: 17936593
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx supposedly does this for free - but I have not tried it
0
 
LVL 1

Assisted Solution

by:Leah_
Leah_ earned 25 total points
ID: 17936882
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
 
LVL 5

Expert Comment

by:kumar_jac
ID: 17937719

Plz try this

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

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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Make the most of your online learning experience.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question