Naming convention for objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
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.

--
Bob 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.
 
Bob,
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.
True good written

:-)

Cor
 
kd said:
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.

Objects typically don't have names. Are you referring to class names?

..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>
 

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

Back
Top