Method GetTypeDescendants
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
TypeBase type.
assemblies
IEnumerable<Assembly>The collection of assemblies where search is performed.
Returns
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
TypeThe base type.
asm
AssemblyThe assembly in which search is performed. If it is null, search is done in the assembly where base type is declared