|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Naming convention for objectsHi All,
What is the naming convention for objects? I checked the MSDN and found naming conventions for class members, etc; but could not find information on the objects. It would be great if anybody could provide me the link to the same. Thanks. kd kd,
It's totally up to preference. IMO you can name your objects (I assume you mean classes?) whatever you like as long as it makes sense and you are consistent throughout your application/library. Regards, -Adam. kd wrote: Show quoteHide quote > Hi All, > > What is the naming convention for objects? > > I checked the MSDN and found naming conventions for class members, etc; but > could not find information on the objects. It would be great if anybody could > provide me the link to the same. > > Thanks. > kd I would go along with Adam's statement but don't make the mistake of naming
a class that you use in hundreds of places with a huge camel-cased name. The wear and tear on fingers and keyboards are too much. -- Show quoteHide quoteBob Powell [MVP] Visual C#, System.Drawing Find great Windows Forms articles in Windows Forms Tips and Tricks http://www.bobpowell.net/tipstricks.htm Answer those GDI+ questions with the GDI+ FAQ http://www.bobpowell.net/faqmain.htm All new articles provide code in C# and VB.NET. Subscribe to the RSS feeds provided and never miss a new article. "kd" <k*@discussions.microsoft.com> wrote in message news:D4E3D911-0ACF-47B5-831B-45747547E08B@microsoft.com... > Hi All, > > What is the naming convention for objects? > > I checked the MSDN and found naming conventions for class members, etc; > but > could not find information on the objects. It would be great if anybody > could > provide me the link to the same. > > Thanks. > kd Bob,
>I would go along with Adam's statement but don't make the mistake of naming True good written>a class that you use in hundreds of places with a huge camel-cased name. >The wear and tear on fingers and keyboards are too much. > :-) Cor"kd" <k*@discussions.microsoft.com> schrieb: Objects typically don't have names. Are you referring to class names?> I checked the MSDN and found naming conventions for class members, etc; > but > could not find information on the objects. It would be great if anybody > could > provide me the link to the same. ..NET Framework General Reference -- Naming Guidelines <URL:http://msdn.microsoft.com/library/en-us/cpgenref/html/cpconnamingguidelines.asp> Related: Naming guidelines and code conventions <URL:http://dotnet.mvps.org/dotnet/faqs/?id=namingconventions&lang=en> -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
Visual Basic.net
Access vs SQL How can I let the internet explorer start to navigate in the same windwo? Multi-dimensional array with variable number of elements in last dimension How to catch a right-click Legacy Client <--> DotNet Listener TAB (key) to next control instead of next column (in datagrid) Writing to Web Server Unable to start debuging on the web server Getting reference to an ErrorProvider |
|||||||||||||||||||||||