Primitively Primitively
Primitively Primitively
DocFX + Singulink = ♥

Search Results for

    Class DecimalInfo

    This class represents metadata properties common to all source generated Primitively numeric types.

    Inheritance
    object
    PrimitiveInfo
    NumericInfo<decimal>
    DecimalInfo
    Implements
    IEquatable<PrimitiveInfo>
    INumericInfo
    IEquatable<NumericInfo<decimal>>
    IEquatable<DecimalInfo>
    Inherited Members
    NumericInfo<decimal>.Minimum
    NumericInfo<decimal>.Maximum
    PrimitiveInfo.DataType
    PrimitiveInfo.Type
    PrimitiveInfo.ValueType
    PrimitiveInfo.Example
    PrimitiveInfo.CreateFrom
    Namespace: Primitively
    Assembly: Primitively.Abstractions.dll
    Syntax
    public sealed record DecimalInfo : NumericInfo<decimal>, IEquatable<PrimitiveInfo>, INumericInfo, IEquatable<NumericInfo<decimal>>, IEquatable<DecimalInfo>

    Constructors

    DecimalInfo(Type, string?, Func<string?, IPrimitive>, decimal, decimal, int, MidpointRounding)

    This class represents metadata properties common to all source generated Primitively numeric types.

    Declaration
    public DecimalInfo(Type Type, string? Example, Func<string?, IPrimitive> CreateFrom, decimal Minimum, decimal Maximum, int Digits, MidpointRounding Mode)
    Parameters
    Type Name Description
    Type Type

    The .NET type of the Primitively type.

    string Example

    An optional example of the integer.

    Func<string, IPrimitive> CreateFrom

    A function that creates an instance of the Primitively type from a string.

    decimal Minimum

    The minimum value that can be set on the source generated Primitively type.

    decimal Maximum

    The maximum value that can be set on the source generated Primitively type.

    int Digits

    The number of fractional digits in the value on the source generated Primitively type

    MidpointRounding Mode

    The rounding specification for how to round value of the source generated Primitively type if it is midway between two other numbers.

    Properties

    Digits

    The number of fractional digits in the value on the source generated Primitively type

    Declaration
    public int Digits { get; init; }
    Property Value
    Type Description
    int

    Mode

    The rounding specification for how to round value of the source generated Primitively type if it is midway between two other numbers.

    Declaration
    public MidpointRounding Mode { get; init; }
    Property Value
    Type Description
    MidpointRounding

    Implements

    IEquatable<T>
    INumericInfo
    IEquatable<T>
    IEquatable<T>
    © Electronic Hands. All rights reserved.