Method GetAllBaseTypesAndInterfaces
GetAllBaseTypesAndInterfaces(Type)
Gets all base types and interfaces for the specified type, including those inherited by its base types.
Declaration
public static IEnumerable<Type> GetAllBaseTypesAndInterfaces(this Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type for which to retrieve base types and interfaces. |
Returns
Type | Description |
---|---|
IEnumerable<Type> | An IEnumerable<T> containing the specified type, all of its base types, and all of its interfaces. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if the specified type is null. |