docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TypeExtensions

    Extension methods for Type objects

    Inheritance
    object
    TypeExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.MARS.MARSUtils
    Assembly: Unity.MARS.Interfaces.dll
    Syntax
    [MovedFrom("Unity.MARS.Interfaces")]
    public static class TypeExtensions

    Methods

    GetImplementationsOfInterface(Type, List<Type>)

    Find all types that implement the given interface type, and append them to a list If the input type is not an interface type, no action is taken.

    Declaration
    public static void GetImplementationsOfInterface(this Type type, List<Type> list)
    Parameters
    Type Name Description
    Type type

    The interface type whose implementors will be found

    List<Type> list

    The list to which implementors will be appended

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)