The Elements of a Namespace

Each namespace can define its own set of classes, structures, delegates, interfaces, and enumerations. And, as we have seen with the System namespace, they can also sometimes contain value types. Let's examine each one of these in turn.

Classes

As we discussed in Chapter 3, a class is a template or blueprint for an object. It defines how an object should look and behave. It does this principally through methods, properties, and events.

If you have read on from the last chapter or have some experience with object-oriented programming, you should be familiar by now with the concepts of classes. You should note, however, that the .NET runtime supports some class attributes that you may not be familiar with. These attributes ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.