Primitively Primitively
Primitively Primitively
DocFX + Singulink = ♥

Search Results for

    Class NumericAttribute

    This is an abstract class for custom attributes that can be applied to integer types. It inherits from the PrimitiveAttribute class and provides properties to set the minimum and maximum values.

    Inheritance
    object
    Attribute
    PrimitiveAttribute
    NumericAttribute
    ByteAttribute
    DecimalAttribute
    DoubleAttribute
    IntAttribute
    LongAttribute
    SByteAttribute
    ShortAttribute
    SingleAttribute
    UIntAttribute
    ULongAttribute
    UShortAttribute
    Inherited Members
    PrimitiveAttribute.ImplementIValidatableObject
    Namespace: Primitively
    Assembly: Primitively.Abstractions.dll
    Syntax
    [AttributeUsage(AttributeTargets.Struct, Inherited = true, AllowMultiple = false)]
    public abstract class NumericAttribute : PrimitiveAttribute
    Remarks

    The generated Primitively type will enforce the specified minimum and maximum value constraints.

    Properties

    Maximum

    Gets or sets the maximum value that can be set on the source generated Primitively type.

    Declaration
    public object? Maximum { get; }
    Property Value
    Type Description
    object

    Minimum

    Gets or sets the minimum value that can be set on the source generated Primitively type.

    Declaration
    public object? Minimum { get; }
    Property Value
    Type Description
    object
    © Electronic Hands. All rights reserved.