Solved

VB.net2C#

Posted on 2006-11-14
6
580 Views
Last Modified: 2012-06-27
Can i convert VB.net 2 C# code ?
0
Comment
Question by:doan_cdf
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now