.NET Framework Namespaces

What is a namespace? If Microsoft had simply provided a list of several thousand classes, attempting to find or work with any specific class would be next to impossible. Although we're speculating, Microsoft might have ended up using class names such as SystemDataOleDbDataSet and SystemTheadingThread. Long names would be required in order to provide some sort of groupings and perspective.

Instead, Microsoft chose to group the various classes into a hierarchical set of namespaces. Using a syntax that separates levels in the hierarchy with dots, you'll find yourself referring to classes like this:

System.Data.OleDb.OleDbDataReader

In this example, the .NET Framework provides a System namespace, a System.Data namespace, ...

Get ASP.NET Developer's JumpStart 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.