Is there any programs out there that can convery VB.NET into C#???
I don't want to have to rewrite my entire program in C#
Printable View
Is there any programs out there that can convery VB.NET into C#???
I don't want to have to rewrite my entire program in C#
If you use Google, you might have found something like this. It takes single files (copy-paste), and you can use it to some degree of accuracy.
Why are you going from VB.net to C#, and not asking something like this on a C# forum?
I highly recommend Instant C# from Tangible Software Solutions, although the trial version will only convert snippets while the full version is required to convert projects. I believe that SharpDevelop can convert projects too, although I've never tried it.
Why am i going to c#
Well i believe C# is a more powerful language so why not make the move?
Because C# isn't a more powerful language, unless you intend to use pointers. By all means learn C#. By all means use C# for future projects. Converting existing projects to C# is pointless though, unless there is something specific you want to do that is more difficult in VB. In fact, you may actually loose something by converting to C#, e.g. there's no application framework so you can't select a splash screen from a drop-down or make a single-instance app with the tick of a box.
SharpDevelop can do this and many other things. Plus, it's free.
What are pointers?
I'm thinking my current project might expand and future project might be done in C# so why not learn it now with a "simple" working project
Pointers are datatypes that are used to point to a specific location in memory. This allows you to read and write from certain memory pretty fast.
You want to learn C#, so you take a VB project and use an automatic converter...? That doesn't make much sense. If you want to learn C#, start a new simple project, or try to convert your project manually. You won't learn anything by having it converted for you. I, as others, advice you to start a new project, even if it's just for learning purposes, because that's much more fun than translating a working project, and you'll learn the language faster that way.
If you don't know the syntax for a certain construct in C#, you can always use the automatic converters to convert a VB snippet to C# just to see how you do it in C#. For some things like loops you probably need to do that a few times, but then you'll have memorized it and you've learned something new :)