< Day Day Up > |
Modules are the simplest type and are useful for most simple programming needs. Namespaces are an essential tool for organizing types in a program and in the .NET Framework, and understanding how to work with them is important. In the next chapter, we will start talking about user -defined types ”structures and classes ”that can be used to develop programs that deal with more complex types of information than the fundamental types can hold. A style point to consider is that top-level namespaces are generally reserved for a particular company or purpose and should not be used to define new types. For example, the top-level namespace System is reserved for types defined by the .NET Framework. Although it is possible to do so, new types should not be defined in the System namespace, to avoid confusion and to avoid name collisions when future versions of the Framework are released. |
< Day Day Up > |