Class Decimal64Ref
Represents the decimal field.
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(Int64)
Constructor.
Declaration
public Decimal64Ref(long nullMantissa)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | nullMantissa | Mantissa NULL value. |
Decimal64Ref(Int64, MemoryPointer<Byte>)
Constructor.
Declaration
public Decimal64Ref(long nullMantissa, MemoryPointer<byte> Buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | nullMantissa | Mantissa NULL value. |
MemoryPointer<System.Byte> | Buffer | Buffer, which contains the decimal value. |
Decimal64Ref(System.SByte, Int64)
Constructor.
Declaration
public Decimal64Ref(System.SByte exponent, long nullMantissa)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | exponent | Constant exponent value. |
System.Int64 | nullMantissa | Mantissa NULL value. |
Decimal64Ref(System.SByte, Int64, MemoryPointer<Byte>)
Constructor.
Declaration
public Decimal64Ref(System.SByte exponent, long nullMantissa, MemoryPointer<byte> Buffer)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | exponent | Constant exponent value. |
System.Int64 | nullMantissa | Mantissa NULL value. |
MemoryPointer<System.Byte> | Buffer | Buffer, which contains the decimal value. |
Properties
Exponent
Gets exponent.
Declaration
public System.SByte Exponent { get; set; }
Property Value
Type | Description |
---|---|
System.SByte |
HasValue
True, if the underlying field has not null value, false otherwise.
Declaration
public override bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
Item[String]
Returns value of composite type field.
Declaration
public override object this[string name] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Field name |
Property Value
Type | Description |
---|---|
System.Object | Value of composite type field |
Overrides
Mantissa
Gets mantissa.
Declaration
public long Mantissa { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Value
Gets decimal value.
Declaration
public decimal Value { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
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 |
---|---|
System.Int32 | 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 |
---|---|
System.Boolean | 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 |
---|---|---|
System.Object | obj | An object to compare with this object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the current object is equal to the other parameter; otherwise, false. |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A hash code for the current object. |
Reset()
Reset to null value.
Declaration
public override void Reset()
Overrides
ToString()
Returns the string representation of an object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The string representation of an object. |
Operators
Equality(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator ==(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
System.Boolean |
GreaterThan(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator>(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
System.Boolean |
GreaterThanOrEqual(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator >=(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator !=(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
System.Boolean |
LessThan(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator <(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
System.Boolean |
LessThanOrEqual(Decimal64Ref, Decimal64Ref)
Declaration
public static bool operator <=(Decimal64Ref left, Decimal64Ref right)
Parameters
Type | Name | Description |
---|---|---|
Decimal64Ref | left | |
Decimal64Ref | right |
Returns
Type | Description |
---|---|
System.Boolean |