Table of Contents

Method GetTypeDescendants

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.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.

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

Parameters

type Type

The base type.

asm Assembly

The assembly in which search is performed. If it is null, search is done in the assembly where base type is declared

Returns

IEnumerable<Type>