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

  • Thread starter Thread starter ken
  • Start date Start date
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
 
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#.
 
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
 
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]
 
I don't know. But how many lines of code are you talking about? Maybe
someone can do it for you?

Ronen
 
Hello Jeremy,

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


Thank You for Your Help,
Ken
 
Hello Ronen,

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

Thank You for all Your Help,
Ken
 
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.
 
Back
Top