Class Decimal64Ref
Represents decimal field.
Inheritance
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class Decimal64Ref : IDecimal, IComposite, IComparable<IDecimal>
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, Byte*)
Constructor.
Declaration
public Decimal64Ref(long nullMantissa, byte *buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | nullMantissa | Mantissa NULL value. |
System.Byte* | buffer | Buffer which contains decimal value. |
Decimal64Ref(SByte, Int64)
Constructor.
Declaration
public Decimal64Ref(sbyte exponent, long nullMantissa)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | exponent | Constant exponent value. |
System.Int64 | nullMantissa | Mantissa NULL value. |
Decimal64Ref(SByte, Int64, Byte*)
Constructor.
Declaration
public Decimal64Ref(sbyte exponent, long nullMantissa, byte *buffer)
Parameters
Type | Name | Description |
---|---|---|
System.SByte | exponent | Constant exponent value. |
System.Int64 | nullMantissa | Mantissa NULL value. |
System.Byte* | buffer | Buffer which contains decimal value. |
Properties
Exponent
Gets exponent.
Declaration
public sbyte Exponent { get; }
Property Value
Type | Description |
---|---|
System.SByte |
HasValue
True, if underlying field has not null value, false otherwise.
Declaration
public bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[String]
Returns value of composite type field.
Declaration
public object this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Field name |
Property Value
Type | Description |
---|---|
System.Object | Value of composite type field |
Mantissa
Gets mantissa.
Declaration
public long Mantissa { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Value
Gets decimal value.
Declaration
public decimal Value { get; }
Property Value
Type | Description |
---|---|
System.Decimal |
Methods
Assign(Byte*)
Assign current object around buffer.
Declaration
public void Assign(byte *buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Byte* | buffer | Buffer which contains decimal value. |
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. |
ToString()
Returns string representation of an object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of an object. |