docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TypeConstructionUtility

    Type construction utilities.

    Inheritance
    object
    TypeConstructionUtility
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Build
    Assembly: solution.dll
    Syntax
    public static class TypeConstructionUtility

    Methods

    Name Description
    ConstructFromAssemblyQualifiedTypeName<T>(string)

    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.

    ConstructTypeDerivedFrom<T>()

    Construct instance of first type derived from T. Derived type must have an implicit, default or registered constructor.

    ConstructTypeDerivedFrom<T>(Func<Type, bool>)

    Construct instance of first type derived from T that satisfies the filtering function. Derived type must have an implicit, default or registered constructor.

    ConstructTypeDerivedFrom<T>(Func<Type, bool>, Func<T, bool>)

    Construct instance of first type derived from T that satisfies both the filtering and condition functions. Derived type must have an implicit, default or registered constructor.

    ConstructTypeDerivedFrom<T>(Func<T, bool>)

    Construct instance of first type derived from T that satisfies the condition function. Derived type must have an implicit, default or registered constructor.

    ConstructTypesDerivedFrom<T>()

    Construct instance of all types derived from T.

    ConstructTypesDerivedFrom<T>(Func<Type, bool>)

    Construct instance of all types derived from T that satisfies the filtering function.

    ConstructTypesDerivedFrom<T>(Func<Type, bool>, Func<T, bool>)

    Construct instance of all types derived from T that satisfies both the filtering and condition functions.

    ConstructTypesDerivedFrom<T>(Func<T, bool>)

    Construct instance of all types derived from T that satisfies the condition function.

    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.

    TryConstructTypeDerivedFrom<T>(Func<Type, bool>, Func<T, bool>, out T)

    Construct instance of first type derived from T that satisfies both the filtering and condition functions. Derived type must have an implicit, default or registered constructor.

    TryConstructTypeDerivedFrom<T>(Func<Type, bool>, out T)

    Construct instance of first type derived from T that satisfies the filtering function. Derived type must have an implicit, default or registered constructor.

    TryConstructTypeDerivedFrom<T>(Func<T, bool>, out T)

    Construct instance of first type derived from T that satisfies the condition function. Derived type must have an implicit, default or registered constructor.

    TryConstructTypeDerivedFrom<T>(out T)

    Construct instance of first type derived from T. Derived type must have an implicit, default or registered constructor.

    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)