Struct NumeralValue
A numeral value with no associated unit.
Namespace: Romanization
Assembly: Romanization.NET.dll
Syntax
public struct NumeralValue : IEquatable<NumeralValue>, IComparable<NumeralValue>
Constructors
| Improve this Doc View SourceNumeralValue(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 SourceValue
The numeric value.
Declaration
public readonly decimal Value
Field Value
Type | Description |
---|---|
System.Decimal |
Methods
| Improve this Doc View SourceCompareTo(NumeralValue)
Declaration
public int CompareTo(NumeralValue other)
Parameters
Type | Name | Description |
---|---|---|
NumeralValue | other |
Returns
Type | Description |
---|---|
System.Int32 |
Equals(NumeralValue)
Declaration
public bool Equals(NumeralValue other)
Parameters
Type | Name | Description |
---|---|---|
NumeralValue | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Operators
| Improve this Doc View SourceEquality(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 |
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 |
Implements
IEquatable<>
IComparable<>