How do you convert a VB.net Proj to C#?

K

ken

Hello All,

I am hoping that this is a simple question with a simple answer.
How do you convert a VB.Net project into a C#.net project?


Thank You in Advance for Your Help,
Ken
 
J

Jeremy Cowles

ken said:
Hello All,

I am hoping that this is a simple question with a simple answer.
How do you convert a VB.Net project into a C#.net project?

You read the code in the VB app, and then type it into C#.
 
R

R Agam

Well, if you have code in that project you will have to rewrite it. The .Net
classes are the same but the C# syntex is not.


Ronen
 
R

Reginald Blue

Jeremy said:
You read the code in the VB app, and then type it into C#.

There is a converter out there that will do some of the drudge work for
this, however, in the end, you're right, it requires someone who knows both
VB.Net and C#.net to complete the task.

--
Reginald Blue
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone."
- Bjarne Stroustrup (originator of C++) [quoted at the 2003
International Conference on Intelligent User Interfaces]
 
R

R Agam

I don't know. But how many lines of code are you talking about? Maybe
someone can do it for you?

Ronen
 
K

ken

Hello Jeremy,

I read somewhere that Anakrino could do this. It that so?


Thank You for Your Help,
Ken
 
K

ken

Hello Ronen,

I read somewhere that Anakrino could do this. It that so?

Thank You for all Your Help,
Ken
 
N

Nicholas Paldino [.NET/C# MVP]

Ken,

Anakrino will decompile IL code into C#. However, it does this on a
method by method basis, so you would have to be prepared for a lot of
cutting and pasting. Also, there are no comments, and variable names are
not descriptive.

You are better off compiling the VB code and referencing it in the C#
project that you want to use it from.

Hope this helps.
 

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