Shared Classes

Visual Basic, differently from other .NET languages such as Visual C#, does not provide the capability of creating shared classes; to accomplish this you have two alternatives: create a class the usual way and mark all members as shared, or you can create a module. Modules are a specific Visual Basic feature that work almost as shared classes (see Chapter 10, “Modules”).

Get Visual Basic® 2010 Unleashed 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.