Class TypeExtensions
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class TypeExtensions
Methods
GetAllSubClassesOf(Type, Assembly[])
Returns a list of types for all classes that extend from the current type and are not abstract
Declaration
public static List<Type> GetAllSubClassesOf(this Type rootType, Assembly[] searchAssemblies = null)
Parameters
Type | Name | Description |
---|---|---|
Type | rootType | The class type from which to search for inherited classes |
Assembly[] | searchAssemblies | List of assemblies to search through for types. If null, default is to grab all assemblies in current app domain |
Returns
Type | Description |
---|---|
List<Type> | Null if rootType is not a class, otherwise returns list of types for sub-classes of rootType |