Class Decimal64Ref
A reference to a decimal field with a 64-bit mantissa.
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class Decimal64Ref : BaseComposite, IDecimal, IComposite, IComparable<IDecimal>, IEquatable<Decimal64Ref>
Constructors
Decimal64Ref()
Constructor.
Declaration
public Decimal64Ref()
Decimal64Ref(long)
Constructor.
Declaration
public Decimal64Ref(long nullMantissa)
Parameters
Type | Name | Description |
---|---|---|
long | nullMantissa | The |
Decimal64Ref(long, UnmanagedPointer)
Constructor.
Declaration
public Decimal64Ref(long nullMantissa, MemoryPointer.UnmanagedPointer buffer)
Parameters
Type | Name | Description |
---|---|---|
long | nullMantissa | The |
MemoryPointer.UnmanagedPointer | buffer | The memory region that contains the decimal field. |
Decimal64Ref(sbyte, long)
Constructor.
Declaration
public Decimal64Ref(sbyte exponent, long nullMantissa)
Parameters
Type | Name | Description |
---|---|---|
sbyte | exponent | The constant exponent value. |
long | nullMantissa | The |
Decimal64Ref(sbyte, long, UnmanagedPointer)
Constructor.
Declaration
public Decimal64Ref(sbyte exponent, long nullMantissa, MemoryPointer.UnmanagedPointer buffer)
Parameters
Type | Name | Description |
---|---|---|
sbyte | exponent | The constant exponent value. |
long | nullMantissa | The |
MemoryPointer.UnmanagedPointer | buffer | The memory region that contains the decimal field. |
Properties
Exponent
Declaration
public sbyte Exponent { get; set; }
Property Value
Type | Description |
---|---|
sbyte | Exponent. |
HasValue
Declaration
public override bool HasValue { get; }
Property Value
Type | Description |
---|---|
bool |
|
Overrides
this[string]
Gets or sets the subfield value.
Declaration
public override object this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
string | name | Subfield name. |
Property Value
Type | Description |
---|---|
object | Subfield value. |
Overrides
Mantissa
Declaration
public long Mantissa { get; set; }
Property Value
Type | Description |
---|---|
long | Mantissa. |
Value
Declaration
public decimal Value { get; set; }
Property Value
Type | Description |
---|---|
decimal | The decimal value. |
Methods
CompareTo(IDecimal)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public int CompareTo(IDecimal other)
Parameters
Type | Name | Description |
---|---|---|
IDecimal | other | An object to compare with this instance |
Returns
Type | Description |
---|---|
int | A value that indicates the relative order of the objects being compared |
Equals(Decimal64Ref)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Decimal64Ref other)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | other | An object to compare with this object |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the other parameter; otherwise, false |
Equals(object)
Indicates whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare with this object |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the other parameter; otherwise, false |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object |
Overrides
Reset()
Resets the field to the null
value.
Declaration
public override void Reset()
Overrides
ToString()
Returns the text representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The text representation. |
Overrides
Operators
operator ==(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator ==(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
bool |
operator >(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator >(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
bool |
operator >=(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator >=(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
bool |
operator !=(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator !=(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
bool |
operator <(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator <(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
bool |
operator <=(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator <=(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
bool |