Common Elements in Visual C# 2008

The remainder of the chapter discusses the common elements of Visual C# 2008 programs.

Namespaces

Namespaces provide hierarchical clarity of classes within and across related assemblies. The .NET Framework Class Library (FCL) is an example of the effective use of namespaces. The FCL would sacrifice clarity if it were designed as a single namespace with a flat hierarchy. Instead, the FCL is organized using a main namespace (System) and several nested namespaces. System, which is the root namespace of the FCL, contains the classes ubiquitous to .NET, such as Console. Types related to LINQ are grouped in the System.Linq namespace. Other .NET services are similarly nested in .NET namespaces. For example, data services ...

Get Programming Microsoft® Visual C#® 2008: The Language now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.