Naming Conventions

Assigning comprehensible identifiers to types and members is 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 or Visual C++ developer, 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 word composing ...

Get Visual Basic 2015 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.