Type System Modifications

In addition to the extensions to the Visual Basic type system, a number of modifications to the existing type system were necessitated by the move to the .NET platform. For the most part, they were required because many of the .NET types that corresponded to COM types (such as arrays and variants) utilized different underlying storage.

Arrays

Arrays on the .NET platform are much more sophisticated than Safearrays are in COM. There are two principal differences that caused changes from Visual Basic 6.0.

The first difference is that all arrays in .NET encode their rank within their type. Because COM Safearrays did not encode their rank as an attribute of an array instance within the array type, code from previous versions ...

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.