You are here:   Blogs
Register   |  Login

Search

Minimize

PPG&A Blogs

Minimize
Dec 16

Written by: Phil Porter
12/16/2009 10:03 AM 

I typically post my code samples in C# (C-Sharp) but there are many other productive programmers who use VB.NET as their primary language and are just happy and have no intention of learning C#.  So what to do when there is some VB code you want to convert to C# or C# to VB.  There are many online tools available just for converting code snippets that are free to use.  One such tool is from Telerik called Code Converter.

To convert your snippet past it into the top text box then use the dropdown list box to choose which language you are converting from and to.  Once you’ve done that then click the Convert Code button.  In a few seconds your code is converted and displayed in the bottom text box.  You can then copy-n-paste the converted code.

There is also a Highlighted Syntax tab where you can get some different formatting for the converted code snippet.

Just remember to check the results as there can be errors in the conversion.

Phil

 

Tags:

Archive

Minimize

WARRANTIES

Minimize

SOURCE CODE SAMPLES MAY BE INCLUDED IN SOME BLOGS. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Other marks and trade names used in this publication are the property of their respective owners.