Class NcNumericType
A data type for a number value.
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcNumericType : NiemXsdecimal, IEquatable<NiemXsdecimal>, IEquatable<NcNumericType>
Properties
ConfidencePercent
A value that indicates belief that content is accurate or trustworthy. NIEM reference is nc:confidencePercent
Declaration
[DataMember(Name = "confidencePercent")]
public decimal? ConfidencePercent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Decimal> | A value that indicates belief that content is accurate or trustworthy. NIEM reference is nc:confidencePercent |
Context
ncNumericType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcNumericType.ContextEnum? Context { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<NcNumericType.ContextEnum> | ncNumericType JSON-LD context |
Tolerance
An allowable range for error on a point estimate. NIEM reference is nc:toleranceNumeric
Declaration
[DataMember(Name = "tolerance")]
public decimal? Tolerance { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Decimal> | An allowable range for error on a point estimate. NIEM reference is nc:toleranceNumeric |
Methods
Equals(NcNumericType)
Returns true if NcNumericType instances are equal
Declaration
public bool Equals(NcNumericType other)
Parameters
| Type | Name | Description |
|---|---|---|
| NcNumericType | other | Instance of NcNumericType 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(NcNumericType, NcNumericType)
Declaration
public static bool operator ==(NcNumericType left, NcNumericType right)
Parameters
| Type | Name | Description |
|---|---|---|
| NcNumericType | left | |
| NcNumericType | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(NcNumericType, NcNumericType)
Declaration
public static bool operator !=(NcNumericType left, NcNumericType right)
Parameters
| Type | Name | Description |
|---|---|---|
| NcNumericType | left | |
| NcNumericType | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |