Simple Naming Conventions in C#

Pascal Casing

First letter in the name is in upppercase and first letter of each subsequent word concatenatd should be in uppercase. The following will follow Pascal casing 

  1. Method names

  2. Class names

  3. Public attributes of class

  4. Namespace

Camel Casing

First letter in the name is in lowercase and first letter of each subsequent word concatenated should be in uppercase.  The following normally follows came casing

  1. Variables

  2. Private attributes of class

C# Keywords

         In C# all the keywords are in lowercase.  Note that Main is not a keyword.  

Advertisements

Author: azagappan

Hi.. I am Azagu. I live in Chennai, Tamil Nadu, India. I am a .NET developer. You can reach me at azagappan at gmail.com

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s