Table of Contents

GetInheritedTypes Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Extensions/TypeDecoratorExtensions.cs

GetInheritedTypes(IDecorator<Type>)

Gets a collection (inherited-to-self) of inherited / ancestor types from the underlying Type of the decorator.

public static IEnumerable<Type> GetInheritedTypes(this IDecorator<Type> decorator)

Parameters

decorator IDecorator<Type>

The IDecorator<T> to extend.

Returns

IEnumerable<Type>

An IEnumerable<T> that contains the inherited types from the underlying Type of the decorator.

Exceptions

ArgumentNullException

decorator cannot be null.