Type System Additions

The .NET type system is considerably richer than the COM type system and so required a number of concepts to be added to the Visual Basic language. The most important was inheritance, but overloading, namespaces, and name hiding were also significant changes.

Classes

A class in previous versions of Visual Basic is equivalent to a COM coclass, which is a collection of supported interfaces. A coclass does not have a distinct identity—when creating a coclass, the creator requests one of the interfaces that the coclass implements. It is then possible to request other supported interfaces by requesting the IUnknown interface of the instance. However, in general it is not possible to know what coclass you have in hand given a ...

Get Programming in the .NET Environment 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.