C# to VB conversion help please

N

Nathon Dalton

I have the following code

Namespace BlahBlah.Blah
{
Public Interface ICustomInt
{
string Prop1
{
set;
}

string Prop2;
{
get;
}
}
}

What would be the VB equivelant of this? How do I get the Get and Set
statements in VB inside of an Interface statement?

Namespace BlahBlah.Blah
Public Interface ICustomInt
Public Property Prop1 as string
Public Property Prop2 as string
End Interface
End Namespace
 
J

Joe Fallon

I use that site a lot.
It is great.
But not perfect.

If you have any #Region codes comment them out first and then translate.
The AndAlso, OrElse constructs don't get translated right.
When an Interface is involved none of the Implements statements get
generated. You have to add them by hand.

So, other than a few minor details, the site does a great job of translating
C# into a readable language. <g>
 
T

TJS

I agree, it is not perfect, but so far it is the best solution I have found,
I haven't had any better results at any other site .
 

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