Naming Conventions
Assigning comprehensible identifiers to types and members is, of course, a best practice in every development environment. This becomes a rule in .NET development, especially if you want your code to be CLS-compliant. To understand this, you need to first know that the Common Language Specification enables only two notations, Pascal and Camel. If you are an old Visual Basic 6 developer or a Visual C++ one, you might be familiar with the Hungarian notation that is not supported by .NET rules. An identifier is Pascal-cased when the first letter of each word composing the identifier is uppercase. The following identifier is Pascal-case: FirstName. An identifier is instead defined as camel-case when the first character of the first ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access