Table of Contents

GetInheritedTypes Method

Definition

Namespace
Cuemon.Extensions.Reflection
Assemblies
Cuemon.Extensions.Reflection.dll
Source
src/Cuemon.Extensions.Reflection/TypeExtensions.cs

GetInheritedTypes(Type)

Gets a collection (inherited-to-self) of inherited / ancestor types of the source.

public static IEnumerable<Type> GetInheritedTypes(this Type source)

Parameters

source Type

The Type to extend.

Returns

IEnumerable<Type>

An IEnumerable<T> that contains the inherited types of the source.

Exceptions

ArgumentNullException

source cannot be null.