Class NiemXsdouble
A data type that is patterned after the IEEE double-precision 64-bit floating point type [IEEE 754-1985]. The basic value space of double consists of the values m x 2^e, where m is an integer whose absolute value is less than 2^53, and e is an integer between -1075 and 970, inclusive. In addition to the basic value space described above, the value space of double also contains the following three special values: positive and negative infinity and not-a-number (NaN).
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NiemXsdouble : IEquatable<NiemXsdouble>
Properties
Context
niem-xsdouble JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NiemXsdouble.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NiemXsdouble.ContextEnum> | niem-xsdouble JSON-LD context |
Value
Gets or Sets Value
Declaration
[DataMember(Name = "value")]
public decimal? Value { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> |
Methods
Equals(NiemXsdouble)
Returns true if NiemXsdouble instances are equal
Declaration
public bool Equals(NiemXsdouble other)
Parameters
Type | Name | Description |
---|---|---|
NiemXsdouble | other | Instance of NiemXsdouble 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(NiemXsdouble, NiemXsdouble)
Declaration
public static bool operator ==(NiemXsdouble left, NiemXsdouble right)
Parameters
Type | Name | Description |
---|---|---|
NiemXsdouble | left | |
NiemXsdouble | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NiemXsdouble, NiemXsdouble)
Declaration
public static bool operator !=(NiemXsdouble left, NiemXsdouble right)
Parameters
Type | Name | Description |
---|---|---|
NiemXsdouble | left | |
NiemXsdouble | right |
Returns
Type | Description |
---|---|
System.Boolean |