Namespaces and Common Language Specification

The Common Language Specification provides a couple of simple rules about namespaces. The first rule is about naming and establishes that namespaces identifiers must be Pascal-cased. For example, MyCustomTypes is a well-formed namespace identifier. The second rule establishes that to be CLS-compliant a namespace must expose at least five types (classes, structures, enumerations, delegates, and so on). If this is not your case, you should prefer single classes or modules or consider merging types within another namespace already containing other types.

Summary

.NET Framework Base Class Library ships with tons of built-in types that are organized within namespaces. As a developer you can build your ...

Get Visual Basic® 2010 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.