Class MaturityMonthYearRef
Represents MaturityMonthYear field.
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class MaturityMonthYearRef : BaseComposite, IMaturityMonthYear, IComposite
Constructors
MaturityMonthYearRef(Int32, Int32, Int32, Int32)
Constructor.
Declaration
public MaturityMonthYearRef(int yearNull, int monthNull, int dayNull, int weekNull)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | yearNull | Year null value. |
System.Int32 | monthNull | Month null value. |
System.Int32 | dayNull | Day null value. |
System.Int32 | weekNull | Week null value. |
MaturityMonthYearRef(Int32, Int32, Int32, Int32, MemoryPointer<Byte>)
Constructor.
Declaration
public MaturityMonthYearRef(int yearNull, int monthNull, int dayNull, int weekNull, MemoryPointer<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | yearNull | Year null value. |
System.Int32 | monthNull | Month null value. |
System.Int32 | dayNull | Day null value. |
System.Int32 | weekNull | Week null value. |
MemoryPointer<System.Byte> | buffer | A buffer, which contains maturity month year value. |
Properties
Day
Day.
Declaration
public System.Byte Day { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
HasDay
True, if the day field has not null value, false otherwise.
Declaration
public bool HasDay { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasMonth
True, if the month field has not null value, false otherwise.
Declaration
public bool HasMonth { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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
HasWeek
True, if the week field has not null value, false otherwise.
Declaration
public bool HasWeek { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
HasYear
True, if the year field has not null value, false otherwise.
Declaration
public bool HasYear { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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
Month
Month.
Declaration
public System.Byte Month { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
Week
Week.
Declaration
public System.Byte Week { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
Year
Year.
Declaration
public UInt16 Year { get; set; }
Property Value
Type | Description |
---|---|
UInt16 |
Methods
Reset()
Declaration
public override void Reset()
Overrides
ToString()
Returns the string representation of an object. The format is yyyyMMdd-ww where yyyy is the year, MM is the month, dd is the day and ww is the week.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The string representation of an object. |