John_0025 Posted February 2, 2005 Posted February 2, 2005 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 Quote
IngisKahn Posted February 2, 2005 Posted February 2, 2005 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. Quote "Who is John Galt?"
Administrators PlausiblyDamp Posted February 2, 2005 Administrators Posted February 2, 2005 I personally prefix private members with a single underscore, and although it doesn't follow the C# naming conventions private variables are never exposed so it isn't really that much of a problem. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.