TypeHierarchy

public sealed class TypeHierarchy
Represents the inheritance/implementation hierarchy of a type.

Constructors

TypeHierarchy

#
public TypeHierarchy(Type type)
Create a new hierarchy.
type (Type)Base type.

Properties

BaseClasses

#
public IEnumerable<Type> BaseClasses { get; }
Enumerate over the entire inheritance hierarchy, not including the current type, starting with the type directly above the local type and ending with (probably) System.Object.

CompleteHierarchy

#
public IEnumerable<Type> CompleteHierarchy { get; }
Enumerate over the entire hierarchy, including the top level type and all interfaces.

Interfaces

#
public IEnumerable<Type> Interfaces { get; }
Enumerate over the entire implementation hierarchy, exluding the top level type.

Type

#
public Type Type { get; }
Gets the type id for this hierarchy.