BaseType Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the type from which the current Type directly inherits.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public abstract Type BaseType { get; }

Property Value

Type: System..::..Type
The Type from which the current Type directly inherits, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the current Type represents the Object class or an interface.

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 nullNothingnullptrunita null reference (Nothing in Visual Basic) is returned as the base type of Object.

Interfaces inherit from zero or more base interfaces; therefore, this property returns nullNothingnullptrunita null reference (Nothing in Visual Basic) if the Type object represents an interface. The base interfaces can be determined with GetInterfaces or FindInterfaces.

If the current Type represents a constructed generic type, the base type reflects the generic arguments. For example, consider the following declarations:

Show: