docs.unity3d.com
    Show / Hide Table of Contents

    Class fsReflectionUtility

    Inheritance
    Object
    fsReflectionUtility
    Namespace: Unity.VisualScripting.FullSerializer
    Syntax
    public static class fsReflectionUtility

    Methods

    GetInterface(Type, Type)

    Searches for a particular implementation of the given interface type inside of the type. This is particularly useful if the interface type is an open type, ie, typeof(IFace{}), because this method will then return IFace{} but with appropriate type parameters inserted.

    Declaration
    public static Type GetInterface(Type type, Type interfaceType)
    Parameters
    Type Name Description
    Type type

    The base type to search for interface

    Type interfaceType

    The interface type to search for. Can be an open generic type.

    Returns
    Type Description
    Type

    The actual interface type that the type contains, or null if there is no implementation of the given interfaceType on type.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023