<  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  >  

The Visual Basic .NET Programming Language
The Visual Basic .NET Programming Language
ISBN: 0321169514
EAN: 2147483647
Year: 2004
Pages: 173
Authors: Paul Vick

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: