C# to VB.Net

K

kronecker

What's the best way to convert a folder full of C# files to VB.Net?

Do I just take each file in turn and convert or are there certain
files I should not convert?
Also for a form should I cut and paste the buttons and controls etc on
the forms or will they appear automatically if I copy and convert the
right files?

Thanks

K.
 
M

Mattias Sjögren

What's the best way to convert a folder full of C# files to VB.Net?

Best in what way? Least time or source code quality?

There are automated translation tools out there that can give you a
quick conversion, but I bet a person who knows both C# and VB well
could produce a higher quality result (but it would take a lot
longer).


Mattias
 
R

rowe_newsgroups

What's the best way to convert a folder full of C# files to VB.Net?

Do I just take each file in turn and convert or are there certain
files I should not convert?
Also for a form should I cut and paste the buttons and controls etc on
the forms or will they appear automatically  if I copy and convert the
right files?

Thanks

K.

Best way?

Don't.

Compile them into a library and don't worry about converting them, in
my opinion that would give you the best business value. This is
especially true since your developers should know both Visual
Basic .NET and C# equally well and be able to switch between the two
at will.

If however I had to pick a converter, I'd pick Instant VB as I've seen
nothing but great things from it:

www.tangiblesoftwaresolutions.com

Thanks,

Seth Rowe [MVP]
http://sethrowe.blogspot.com/
 
H

Herfried K. Wagner [MVP]

What's the best way to convert a folder full of C# files to VB.Net?

Do I just take each file in turn and convert or are there certain
files I should not convert?
Also for a form should I cut and paste the buttons and controls etc on
the forms or will they appear automatically if I copy and convert the
right files?

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>

I recommend the (commercial) converter from Tangible Software Inc. for large
amounts of code. It produces very accurate results.
 
K

kimiraikkonen

What's the best way to convert a folder full of C# files to VB.Net?

Do I just take each file in turn and convert or are there certain
files I should not convert?
Also for a form should I cut and paste the buttons and controls etc on
the forms or will they appear automatically if I copy and convert the
right files?

Thanks

K.

You can use commercial use which should be more accurate. However,
there are online converters which may really help you to convert small
piece of code with good result, but they are not best because of
failing at specific points even when converting a MessageBox class
maybe because of a missing reference(eg: Interaction.MsgBox) or based
on other things.

Plus, that link (any there are many) may help you to make out the
differences of both syntaxes:
http://www.harding.edu/fmccown/vbnet_csharp_comparison.html

Thanks,

Onur
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top