Class MaturityMonthYearRef
A reference to the MaturityMonthYear field.
Inherited Members
Namespace: OnixS.SimpleBinaryEncoding
Assembly: OnixS.SimpleBinaryEncoding.dll
Syntax
public class MaturityMonthYearRef : BaseComposite, IMaturityMonthYear, IComposite
Constructors
MaturityMonthYearRef(int, int, int, int)
Constructor.
Declaration
public MaturityMonthYearRef(int yearNull, int monthNull, int dayNull, int weekNull)
Parameters
| Type | Name | Description |
|---|---|---|
| int | yearNull | The year |
| int | monthNull | The month |
| int | dayNull | The day |
| int | weekNull | The week |
MaturityMonthYearRef(int, int, int, int, UnmanagedPointer)
Constructor.
Declaration
public MaturityMonthYearRef(int yearNull, int monthNull, int dayNull, int weekNull, MemoryPointer.UnmanagedPointer buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| int | yearNull | The year |
| int | monthNull | The month |
| int | dayNull | The day |
| int | weekNull | The week |
| MemoryPointer.UnmanagedPointer | buffer | The memory segment that contains the |
Properties
Day
Declaration
public byte Day { get; set; }
Property Value
| Type | Description |
|---|---|
| byte | Day. |
HasDay
Declaration
public bool HasDay { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
HasMonth
Declaration
public bool HasMonth { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
HasValue
Declaration
public override bool HasValue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Overrides
HasWeek
Declaration
public bool HasWeek { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
HasYear
Declaration
public bool HasYear { get; }
Property Value
| Type | Description |
|---|---|
| bool |
|
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
Month
Declaration
public byte Month { get; set; }
Property Value
| Type | Description |
|---|---|
| byte | Month. |
Week
Declaration
public byte Week { get; set; }
Property Value
| Type | Description |
|---|---|
| byte | Week. |
Year
Declaration
public ushort Year { get; set; }
Property Value
| Type | Description |
|---|---|
| ushort | Year. |
Methods
Reset()
Resets the field to the null value.
Declaration
public override void Reset()
Overrides
ToString()
Returns the text representation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The text representation |
Overrides
Remarks
The format is yyyyMMdd-ww, where yyyy is the year, MM is the month, dd is the day, and ww is the week.