With one exception, types in Visual Basic 7.0 are divided into two categories: value types and reference types. Enumerated types, structure types, and all the primitive types are value types. Class types, interface types, array types, delegate types, and strings are reference types. The abstract root type Object
, which is an alias for System.Object
, is special in that it is neither specifically a reference type nor a value type. Thus, a variable of type Object
can either contain a value type or a reference type.
Object