473,503 Members | 3,497 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# to VB conversion help please

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
Nov 18 '05 #1
3 995
TJS
http://authors.aspalliance.com/aldot...translate.aspx
"Nathon Dalton" <DO NOT REPLY> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2
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>
--
Joe Fallon


"TJS" <no****@here.com> wrote in message
news:Ob**************@tk2msftngp13.phx.gbl...
http://authors.aspalliance.com/aldot...translate.aspx
"Nathon Dalton" <DO NOT REPLY> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
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


Nov 18 '05 #3
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 .

"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:OV****************@TK2MSFTNGP12.phx.gbl...
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>
--
Joe Fallon


"TJS" <no****@here.com> wrote in message
news:Ob**************@tk2msftngp13.phx.gbl...
http://authors.aspalliance.com/aldot...translate.aspx
"Nathon Dalton" <DO NOT REPLY> wrote in message
news:OJ**************@TK2MSFTNGP11.phx.gbl...
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



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1978
by: weasel | last post by:
Why is the Farenheit to Celsius part not working properly? Instead of showing a similar range of what the farenheit is listing, the celsius portion is showing half the range of farenheit. print...
30
4990
by: Tim Johansson | last post by:
I'm new to C++, and tried to start making a script that will shuffle an array. Can someone please tell me what's wrong? #include <iostream.h> #include <string.h> int main () {...
31
6575
by: Bjørn Augestad | last post by:
Below is a program which converts a double to an integer in two different ways, giving me two different values for the int. The basic expression is 1.0 / (1.0 * 365.0) which should be 365, but one...
4
6467
by: Nikhil Patel | last post by:
Hi all, I am a VB6 programmer and learning C#. I am currently reading a chapter on types. I have question regarding enums. Why do we need to convert enum members to the value that they represent?...
11
7590
by: Steve Gough | last post by:
Could anyone please help me to understand what is happening here? The commented line produces an error, which is what I expected given that there is no conversion defined from type double to type...
8
4326
by: Duncan Winn | last post by:
I am new to VC++7. I am using a method GetPrivateProfileString that requires an LPTSTR. I have defined this as a: char * data_name; I am then trying to convert this to an LPOLESTR and I...
11
2682
by: jyck91 | last post by:
// Base Conversion // Aim: This program is to convert an inputted number // from base M into base N. Display the converted // number in base N. #include <stdio.h> #include <stdlib.h>...
3
4596
by: utab | last post by:
Dear all, I was trying to write a more complex program, and while searching for sth in my reference C++ primer, by Lippman. I had a question in the mind, see the code below #include <string>...
1
4277
by: v4vijayakumar | last post by:
Can "c++ conversion operator" be considered as an example for Prototype design pattern? Following example explains, C++ conversion operator. #include <iostream> #include <string> using...
6
2617
by: Rahul | last post by:
Hi Everyone, I have the following code, class B; class A { public : operator B();
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7261
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.