|
-
May 25th, 2010, 09:11 PM
#1
Thread Starter
Fanatic Member
Convert VB to C#
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#
-
May 25th, 2010, 09:18 PM
#2
Re: Convert VB to 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?
-
May 25th, 2010, 09:22 PM
#3
Re: Convert VB to C#
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.
-
May 26th, 2010, 12:20 AM
#4
Thread Starter
Fanatic Member
Re: Convert VB to C#
Why am i going to c#
Well i believe C# is a more powerful language so why not make the move?
-
May 26th, 2010, 12:34 AM
#5
Re: Convert VB to C#
 Originally Posted by AirlineSim
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.
-
May 26th, 2010, 01:28 AM
#6
Hyperactive Member
Re: Convert VB to C#
SharpDevelop can do this and many other things. Plus, it's free.
Prefix has no suffix, but suffix has a prefix.
-
May 26th, 2010, 03:32 AM
#7
Thread Starter
Fanatic Member
Re: Convert VB to C#
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
-
May 26th, 2010, 03:36 AM
#8
Re: Convert VB to C#
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.
-
May 26th, 2010, 03:40 AM
#9
Re: Convert VB to C#
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|