Class NiemXsgDay
A data type for a gregorian day that recurs, specifically a day of the month such as the 5th of the month. Arbitrary recurring days are not supported by this datatype. The value space of gDay is the space of a set of calendar dates as defined in Section 3 of [ISO 8601]. Specifically, it is a set of one-day long, monthly periodic instances.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NiemXsgDay : IEquatable<NiemXsgDay>
Properties
Context
niem-xsgDay JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NiemXsgDay.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NiemXsgDay.ContextEnum> | niem-xsgDay JSON-LD context |
Value
Gets or Sets Value
Declaration
[DataMember(Name = "value")]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(NiemXsgDay)
Returns true if NiemXsgDay instances are equal
Declaration
public bool Equals(NiemXsgDay other)
Parameters
Type | Name | Description |
---|---|---|
NiemXsgDay | other | Instance of NiemXsgDay to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Operators
Equality(NiemXsgDay, NiemXsgDay)
Declaration
public static bool operator ==(NiemXsgDay left, NiemXsgDay right)
Parameters
Type | Name | Description |
---|---|---|
NiemXsgDay | left | |
NiemXsgDay | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NiemXsgDay, NiemXsgDay)
Declaration
public static bool operator !=(NiemXsgDay left, NiemXsgDay right)
Parameters
Type | Name | Description |
---|---|---|
NiemXsgDay | left | |
NiemXsgDay | right |
Returns
Type | Description |
---|---|
System.Boolean |