docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class fsReflectionUtility

    Inheritance
    object
    fsReflectionUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VisualScripting.FullSerializer
    Assembly: Unity.VisualScripting.Core.dll
    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.

    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)