Show / Hide Table of Contents

    Class TypeConstraintAttribute

    Constrains a property to a range of Types.

    Inheritance
    Object
    TypeConstraintAttribute
    Namespace: IdleKit.Core
    Assembly: cs.temp.dll.dll
    Syntax
    public class TypeConstraintAttribute : PropertyAttribute

    Constructors

    TypeConstraintAttribute(Type[])

    Declaration
    public TypeConstraintAttribute(params Type[] requiredTypes)
    Parameters
    Type Name Description
    Type[] requiredTypes

    Properties

    RequiredTypes

    The Types this property must derive from.

    Declaration
    public Type[] RequiredTypes { get; }
    Property Value
    Type Description
    Type[]

    RequiredTypesLabel

    A readable form of the required Types.

    Declaration
    public string RequiredTypesLabel { get; }
    Property Value
    Type Description
    String
    Back to top Copyright © 2020 East Side Games Inc.