docs.unity3d.com
    Show / Hide Table of Contents

    Class HybridTypeUtility

    Inheritance
    Object
    HybridTypeUtility
    Namespace: Ludiq.Bolt
    Syntax
    public static class HybridTypeUtility

    Methods

    AsUnityNull(HybridType)

    Declaration
    public static HybridType AsUnityNull(this HybridType type)
    Parameters
    Type Name Description
    HybridType type
    Returns
    Type Description
    HybridType

    GetHybridType(Object)

    Declaration
    public static HybridType GetHybridType(this object o)
    Parameters
    Type Name Description
    Object o
    Returns
    Type Description
    HybridType

    Hybrid(Type)

    Declaration
    public static HybridType Hybrid(this Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    HybridType

    InferCommonType(HybridType[])

    Declaration
    public static HybridType InferCommonType(params HybridType[] types)
    Parameters
    Type Name Description
    HybridType[] types
    Returns
    Type Description
    HybridType

    InferCommonType(IEnumerable<HybridType>)

    Declaration
    public static HybridType InferCommonType(IEnumerable<HybridType> types)
    Parameters
    Type Name Description
    IEnumerable<HybridType> types
    Returns
    Type Description
    HybridType

    IsAssignableFrom(Type, HybridType)

    Declaration
    public static bool IsAssignableFrom(this Type type, HybridType t)
    Parameters
    Type Name Description
    Type type
    HybridType t
    Returns
    Type Description
    Boolean

    IsOfHybridType(EnsureThat, HybridType, HybridType)

    Declaration
    public static void IsOfHybridType(this EnsureThat ensure, HybridType param, HybridType expectedType)
    Parameters
    Type Name Description
    EnsureThat ensure
    HybridType param
    HybridType expectedType

    IsOfHybridType<T>(EnsureThat, T, HybridType)

    Declaration
    public static void IsOfHybridType<T>(this EnsureThat ensure, T param, HybridType expectedType)
    Parameters
    Type Name Description
    EnsureThat ensure
    T param
    HybridType expectedType
    Type Parameters
    Name Description
    T

    OfType<T>(IEnumerable<T>, HybridType)

    Declaration
    public static IEnumerable<T> OfType<T>(this IEnumerable<T> source, HybridType type)
    Parameters
    Type Name Description
    IEnumerable<T> source
    HybridType type
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T

    TryInferCommonType(IEnumerable<HybridType>, out HybridType)

    Declaration
    public static bool TryInferCommonType(IEnumerable<HybridType> types, out HybridType commonType)
    Parameters
    Type Name Description
    IEnumerable<HybridType> types
    HybridType commonType
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    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