Monday, February 08, 2010

Converting Between C# and Visual Basic

When it comes to .NET, I only write code in C#. I only know C#. Every now and then, though, I will find myself having to debug or write something in Visual Basic (VB). The one minor problem is that I actually don't know Visual Basic. I can barely write the most simple of commands in a code editor using the Visual Basic syntax.

Despite me not knowing VB, I still somehow manage. How is it possible for someone who knows only non-VB languages to be able to figure out what is going on in a VB project? That is where this article comes in.

Getting Started
All you will need for this article is a .NET based DLL or EXE from a project. Any DLL or EXE is fine, though one that contains complicated functionality will give you a better appreciation of what you will see.

If you don't have a DLL/EXE handy, much like lawyers, an example will be provided for you. Feel free to use my sample project from the following link. If you want to follow along, I urge you to download and work with my sample project as well.

Read more: kirupa.com

Posted via email from jasper22's posterous