Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How do you distingish between the method and property names in VB.NET?

 

To show what I mean in C#, a case sensitive language, you can do this:

 

public class example 
{
private string name;

public string Name
{
	get {this.name;}
}
}

 

As VB.net is case insensitive this doesn't work so what is a good convention for naming the methods and properties.

 

Thanks

Posted
Yet another problem with VB.NET, you can't follow the naming convention rules. Anyway I'd say most go with Private String MyName. Some people prefix with m or m_ like was done with C++ but since that doesn't follow the C# naming convention I'd stay away from that.
"Who is John Galt?"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...