• Version 4.4.3
Show / Hide Table of Contents

Class Decimal64Ref

A reference to a decimal field with a 64-bit mantissa.

Inheritance
object
BaseComposite
Decimal64Ref
Implements
IDecimal
IComposite
IComparable<IDecimal>
IEquatable<Decimal64Ref>
Inherited Members
BaseComposite.Buffer
BaseComposite.Wrap(MemoryPointer.UnmanagedPointer)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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 null mantissa value.

Decimal64Ref(long, UnmanagedPointer)

Constructor.

Declaration
public Decimal64Ref(long nullMantissa, MemoryPointer.UnmanagedPointer buffer)
Parameters
Type Name Description
long nullMantissa

The null mantissa value.

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 null mantissa value.

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 null mantissa value.

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

true if the underlying field has a non-null value, false otherwise.

Overrides
BaseComposite.HasValue

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
BaseComposite.this[string]

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
object.Equals(object)

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object

Overrides
object.GetHashCode()

Reset()

Resets the field to the null value.

Declaration
public override void Reset()
Overrides
BaseComposite.Reset()

ToString()

Returns the text representation.

Declaration
public override string ToString()
Returns
Type Description
string

The text representation.

Overrides
object.ToString()

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

Implements

IDecimal
IComposite
IComparable<T>
IEquatable<T>
In this article
Back to top Copyright © Onix Solutions.
Generated by DocFX