Matt Higgins

Matt Higgins

  • NA
  • 32
  • 24.6k

When is it best to use Capital letters or use in variable names

Oct 24 2012 6:09 AM
Hi

Please forgive me, this is my first c# post in with c-sharp corner so this topic is partly to hlep me also get a feel for it.

Does anyone know any non-Microsoft friendly links which explains when it best to use capital letters to describe variables, list array names and also variable set within Classes.

Also help on what to call variables would also be handy. For example, is it ever a good idea to include the name of the class in the variable name e.g. variables called accountManual, accountDirectDebit where accout is the name of a custom-made class.

I appreciate that I could use Namespaces but is it ever advisable to include the class name inside a variable. Another example I see in books is something like objListItem where obj incidate that the variable is reference to an the ListViewItem class.

Thanks to to anyone who know of any web-links that give me a good sense for it.

Cheers
Matt

Answers (2)