The BaseType
property of the TypeDescription
class provides access to the base type of the described type. This property can return null
if the type is not present in the type library.
The BaseType
property of the TypeDescription
class provides access to the base type of the described type. This property can return null
if the type is not present in the type library.
Use the BaseType
property to retrieve the base type of a given type described by a TypeDescription
instance. This is useful for understanding the inheritance hierarchy of a type.
// Example of accessing the BaseType property TypeDescription typeDescription = TypeLibrary.GetType("MyNamespace.MyClass"); TypeDescription baseType = typeDescription.BaseType; if (baseType != null) { Console.WriteLine($"Base type: {baseType.FullName}"); } else { Console.WriteLine("The base type is not available in the type library."); }