Table of Contents

Method GetTypeDescendants

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll

GetTypeDescendants(Type, IEnumerable<Assembly>)

Returns list of types which descend from the specified type. Search is performed in the collection of assemblies.

public static IEnumerable<Type> GetTypeDescendants(Type type, IEnumerable<Assembly> assemblies)

Parameters

type Type

Base type.

assemblies IEnumerable<Assembly>

The collection of assemblies where search is performed.

Returns

IEnumerable<Type>

GetTypeDescendants(Type, Assembly?)

Returns list of types which descend from the specified type. Search is performed in asm assembly or in assembly where type is declared if parameter is null.

public static IEnumerable<Type> GetTypeDescendants(Type type, Assembly? asm = null)

Parameters

type Type

Base type.

asm Assembly

Returns

IEnumerable<Type>