Class TypeInstanceFactory | Properties | 0.10.4-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class TypeInstanceFactory

    Inheritance
    Object
    TypeInstanceFactory
    Namespace: Unity.Properties
    Syntax
    public static class TypeInstanceFactory

    Methods

    Construct<TValue, TInput>(TInput)

    Constructs an instance of based on the given value.

    Declaration
    public static TValue Construct<TValue, TInput>(TInput source)
    Parameters
    Type Name Description
    TInput source

    The source value containing the data for construction.

    Returns
    Type Description
    TValue

    A new instance of the destination type

    Type Parameters
    Name Description
    TValue

    The destination type to construct.

    TInput

    The source type containing type information.

    IsRegistered<TValue, TInput>()

    Declaration
    public static bool IsRegistered<TValue, TInput>()
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    TValue
    TInput

    Register<TValue>(TypeInstanceFactory.ITypeConstructor<TValue>)

    Declaration
    public static void Register<TValue>(TypeInstanceFactory.ITypeConstructor<TValue> handler)
    Parameters
    Type Name Description
    TypeInstanceFactory.ITypeConstructor<TValue> handler
    Type Parameters
    Name Description
    TValue

    Register<TInput, TValue>(TypeInstanceFactory.ITypeConstructor<TInput, TValue>)

    Declaration
    public static void Register<TInput, TValue>(TypeInstanceFactory.ITypeConstructor<TInput, TValue> handler)
    Parameters
    Type Name Description
    TypeInstanceFactory.ITypeConstructor<TInput, TValue> handler
    Type Parameters
    Name Description
    TInput
    TValue

    TryConstruct<TValue, TInput>(TInput, out TValue)

    Declaration
    public static bool TryConstruct<TValue, TInput>(TInput source, out TValue value)
    Parameters
    Type Name Description
    TInput source
    TValue value
    Returns
    Type Description
    Boolean
    Type Parameters
    Name Description
    TValue
    TInput
    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