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
typeTypeBase type.
assembliesIEnumerable<Assembly>The collection of assemblies where search is performed.
Returns
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)