This Season
 

How to Convert Source Code from Csharp to vb.Net and Back with Free Software

How to Convert Source Code from Csharp to vb.Net and Back with Free Softwarethumbnail
Convert Source Code from Csharp to vb.Net and Back with Free Software

Software developers who use the current Microsoft Visual Studio .Net programming languages of Visual Basic .Net (VB.Net) and Csharp .Net (C#) need to be able to find code examples online. Many times these code examples are not in the programming language the developer is most fluent in using. It is easier to follow the source code example in VB.Net or C# if that is the programming language used every day.

There are commercial tools to convert software from one .Net programming language to another like ones from VBConversions, CSharpener, Clarity Consulting and Tangible Software. However, I have found some free tools that will take care of converting everything from code snippets to entire Visual Studio Solutions from one .Net language to the other.

Please note. The resources section at the bottom of this article contains clickable links to the free tools discussed here.

Related Searches:
    Difficulty:
    Moderately Easy

    Instructions

      • 1

        To convert short snippets of source code there are several websites that provide free conversion tools. They all basically work the same way.

      • 2
        Telerik Online VB.Net to C# Source Code Converter

        Open your favorite web browser and navigate to one of these online .Net code conversion tools:

        Carlos Mares online converter
        Developer Fusion's online converter
        Telerik's code converter (My favorite online converter)

      • 3

        Copy the source code snippet you wish to convert. Paste it in the entry box provided on one of site mentioned in step 2. Select the desired translation and click the action button. Assuming your original source code was valid; you should see the code translated into the desired Microsoft .Net programming language.

      • 4

        To convert an entire Visual Studio solution or project use the open source program called SharpDevelop. SharpDevelop is actually an IDE replacement for Visual Studio. You can use it to write your code instead of the native IDE that ships from Microsoft. I just use it to convert whole projects. Visit the SharpDevelopment home page, download the software, and install it.

      • 5
        Convert Microsoft .Net C# to VB with SharpDevelop

        Start SharpDevelop and open the solution containing the source code you wish to convert. In the SharpDevelop Project List window, right click on the project you wish to convert. Select the Convert menu option. Another menu will pop open showing the conversion options. If you opened a C# project, you will see:

        From C# to Boo
        C# to Python
        C# to VB.Net

        Menu options.

      • 6

        Select a source code conversion menu option. The code will be converted to the desired .Net programming language. It will be in a new folder at the same level as the original source with name .ConvertedTo___ where ___ is the destination language.

    Related Searches

    Resources

    Read Next:

    Comments

    You May Also Like

    Follow eHow

    Related Ads