Class NiemXsduration
A data type for a duration of time with the format PnYnMnDTnHnMnS, where nY is the number of years, nM is the number of months, nD is the number of days, nH is the number of hours, nM is the number of minutes, and nS is the number of seconds.
Inheritance
System.Object
NiemXsduration
Implements
System.IEquatable<NiemXsduration>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NiemXsduration : IEquatable<NiemXsduration>
Properties
Context
niem-xsduration JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NiemXsduration.ContextEnum? Context { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<NiemXsduration.ContextEnum> | niem-xsduration 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(NiemXsduration)
Returns true if NiemXsduration instances are equal
Declaration
public bool Equals(NiemXsduration other)
Parameters
| Type | Name | Description |
|---|---|---|
| NiemXsduration | other | Instance of NiemXsduration 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
System.Object.Equals(System.Object)
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | Hash code |
Overrides
System.Object.GetHashCode()
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
System.Object.ToString()
Operators
Equality(NiemXsduration, NiemXsduration)
Declaration
public static bool operator ==(NiemXsduration left, NiemXsduration right)
Parameters
| Type | Name | Description |
|---|---|---|
| NiemXsduration | left | |
| NiemXsduration | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(NiemXsduration, NiemXsduration)
Declaration
public static bool operator !=(NiemXsduration left, NiemXsduration right)
Parameters
| Type | Name | Description |
|---|---|---|
| NiemXsduration | left | |
| NiemXsduration | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implements
System.IEquatable<T>