May 19, 2002 - What's in a Namespace?
May 19, 2002 What's in a Namespace? Tips: May 2002
Yehuda Shiran, Ph.D.
|
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.