Class TimestampRef
Represents MaturityMonthYear field.
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class TimestampRef : BaseComposite, ITimestamp, IComposite, IEquatable<TimestampRef>
Constructors
TimestampRef(Nullable<TimeUnit>)
Constructor.
Declaration
public TimestampRef(TimeUnit? constant)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<TimeUnit> | constant | A time unit constant value. |
TimestampRef(Nullable<TimeUnit>, MemoryPointer<Byte>)
Constructor.
Declaration
public TimestampRef(TimeUnit? constant, MemoryPointer<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<TimeUnit> | constant | A time unit constant value. |
MemoryPointer<System.Byte> | buffer | A buffer, which contains maturity month year value. |
Properties
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 the 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 the composite type field |
Overrides
Time
Time value measured in time units.
Declaration
public UInt64 Time { get; set; }
Property Value
Type | Description |
---|---|
UInt64 |
Unit
Time unit.
Declaration
public TimeUnit Unit { get; set; }
Property Value
Type | Description |
---|---|
TimeUnit |
Methods
Equals(TimestampRef)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TimestampRef other)
Parameters
Type | Name | Description |
---|---|---|
TimestampRef | 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()
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. |