docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryConstructFromAssemblyQualifiedTypeName

    TryConstructFromAssemblyQualifiedTypeName<T>(string, out T)

    Construct instance of type resolved from assembly qualified type name, and return it as T. Resolved type must have an implicit, default or registered constructor, and not have ObsoleteAttribute.

    Declaration
    public static bool TryConstructFromAssemblyQualifiedTypeName<T>(string assemblyQualifiedTypeName, out T value)
    Parameters
    Type Name Description
    string assemblyQualifiedTypeName

    The assembly qualified type name.

    T value

    New instance of type resolved from assembly qualified type name.

    Returns
    Type Description
    bool

    true if type resolved from assembly qualified type name was successfully constructed, false otherwise.

    Type Parameters
    Name Description
    T

    The returned type.

    In This Article
    Back to top
    Copyright © 2024 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)