O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding Namespaces

One of the main advantages of object-oriented programming is code reuse; classes can be shared among programs. By using already-written classes you can save yourself a lot of work. An organizational unit containing shared code components is known as a namespace. One of the most exciting things about Visual Basic .NET is the amount of functionality available from classes built into the .NET framework. Table 5.1 lists a few examples of some namespaces provided by the .NET framework for use in your programs.

Table 5.1. Examples of Namespaces
Name Purpose
System.Math Mathematical functions
System.Drawing.Graphics Drawing lines, and so on
System.Windows.Forms Windows Forms
System.Diagnostics Diagnostics, error log
Microsoft.VisualBasic ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required