mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class TypeExtensions

    Inheritance
    Object
    TypeExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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

    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

    In This Article
    • Methods
      • GetAllSubClassesOf(Type, Assembly[])
      • GetAllSubClassesOf(Type, Assembly[])
    Back to top Generated by DocFX