We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    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

    In This Article
    Back to top Generated by DocFX