Property Value

The Type from which the current Type directly inherits, or a null reference (Nothing in Visual Basic) if the current Type represents the Object class.

Remarks

The base type is the type from which the current type directly inherits. Object is the only type that does not have a base type, therefore a null reference (Nothing in Visual Basic) is returned as the base type of Object.

Interfaces inherit from Object and from zero or more base interfaces; therefore, the base type of an interface is considered to be Object. The base interfaces can be determined with GetInterfaces or FindInterfaces.

This property is read-only.

Example

[Visual Basic, C#, C++] The following example demonstrates using the BaseType property.