Search Results for

    Show / Hide Table of Contents

    Struct NumeralValue

    A numeral value with no associated unit.

    Implements
    IEquatable<NumeralValue>
    IComparable<NumeralValue>
    Namespace: Romanization
    Assembly: Romanization.NET.dll
    Syntax
    public struct NumeralValue : IEquatable<NumeralValue>, IComparable<NumeralValue>

    Constructors

    | Improve this Doc View Source

    NumeralValue(Decimal)

    Constructs a new NumeralValue<TLanguageUnits> with a value.

    Declaration
    public NumeralValue(decimal value)
    Parameters
    Type Name Description
    System.Decimal value

    The value.

    Fields

    | Improve this Doc View Source

    Value

    The numeric value.

    Declaration
    public readonly decimal Value
    Field Value
    Type Description
    System.Decimal

    Methods

    | Improve this Doc View Source

    CompareTo(NumeralValue)

    Declaration
    public int CompareTo(NumeralValue other)
    Parameters
    Type Name Description
    NumeralValue other
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Equals(NumeralValue)

    Declaration
    public bool Equals(NumeralValue other)
    Parameters
    Type Name Description
    NumeralValue other
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    Operators

    | Improve this Doc View Source

    Equality(NumeralValue, NumeralValue)

    Checks for equality between two NumeralValue instances.

    Declaration
    public static bool operator ==(NumeralValue left, NumeralValue right)
    Parameters
    Type Name Description
    NumeralValue left

    The left side of the operator.

    NumeralValue right

    The right side of the operator.

    Returns
    Type Description
    System.Boolean

    Whether left and right are value-equal.

    | Improve this Doc View Source

    Inequality(NumeralValue, NumeralValue)

    Checks for inequality between two NumeralValue instances.

    Declaration
    public static bool operator !=(NumeralValue left, NumeralValue right)
    Parameters
    Type Name Description
    NumeralValue left

    The left side of the operator.

    NumeralValue right

    The right side of the operator.

    Returns
    Type Description
    System.Boolean

    Whether left and right are not value-equal.

    Implements

    IEquatable<>
    IComparable<>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Romanization.NET