May 19, 2002 - What's in a Namespace? | WebReference

May 19, 2002 - What's in a Namespace?

Yehuda Shiran May 19, 2002
What's in a Namespace?
Tips: May 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

The .NET Framework supports a lot of classes that you can reuse. These classes can help you in creating forms, buttons, text boxes, and almost everything else that may be shared between applications. Classes in the .NET Framework are organized in namespaces. Each namespace includes one or (usually) more classes that are related to each other. The System namespace, for example, includes system-related classes such as Console. The .NET Framework's namespaces are organized in a hierarchical manner. Here are three namespaces which have three-level hierarchical names:

  System
  System.Web
  System.Web.Services
Each of the above three namespaces includes different classes: the System namespace includes system-related classes, the System.Web namespace includes Web-related classes, and the System.Web.Services namespace includes Web services-related classes. There is no inclusion relationship between the three namespaces. The System namespace does not include the System.Web's classes. Similarly, the System.Web.Service's namespace does not include the System.Web's classes.

To learn more about JScript .NET, go to Column 109, JScript .NET, Part III: Classes and Namespaces.