Class NcBinaryHashType
A data type for a hash value representing an object encoded in a binary format.
Inheritance
Implements
Inherited Members
Namespace: NiemTypes
Assembly: EidoLib.dll
Syntax
[DataContract]
public class NcBinaryHashType : IEquatable<NcBinaryHashType>
Properties
Code
A binary hash value. NIEM reference is nc:BinaryHashCode
Declaration
[DataMember(Name = "code")]
public List<NiemXsstring> Code { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NiemXsstring> | A binary hash value. NIEM reference is nc:BinaryHashCode |
Context
ncBinaryHashType JSON-LD context
Declaration
[DataMember(Name = "@context")]
public NcBinaryHashType.ContextEnum? Context { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<NcBinaryHashType.ContextEnum> | ncBinaryHashType JSON-LD context |
Function
A hash function used to generate a hash value representing an object encoded in a binary format. NIEM reference is nc:BinaryHashFunctionText
Declaration
[DataMember(Name = "function")]
public List<NcTextType> Function { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcTextType> | A hash function used to generate a hash value representing an object encoded in a binary format. NIEM reference is nc:BinaryHashFunctionText |
FunctionCode
A hash function used to generate a hash value representing an object encoded in a binary format. NIEM reference is nc:BinaryHashFunctionCode
Declaration
[DataMember(Name = "functionCode")]
public List<NcBinaryHashFunctionCodeType> FunctionCode { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<NcBinaryHashFunctionCodeType> | A hash function used to generate a hash value representing an object encoded in a binary format. NIEM reference is nc:BinaryHashFunctionCode |
Methods
Equals(NcBinaryHashType)
Returns true if NcBinaryHashType instances are equal
Declaration
public bool Equals(NcBinaryHashType other)
Parameters
Type | Name | Description |
---|---|---|
NcBinaryHashType | other | Instance of NcBinaryHashType 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(NcBinaryHashType, NcBinaryHashType)
Declaration
public static bool operator ==(NcBinaryHashType left, NcBinaryHashType right)
Parameters
Type | Name | Description |
---|---|---|
NcBinaryHashType | left | |
NcBinaryHashType | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(NcBinaryHashType, NcBinaryHashType)
Declaration
public static bool operator !=(NcBinaryHashType left, NcBinaryHashType right)
Parameters
Type | Name | Description |
---|---|---|
NcBinaryHashType | left | |
NcBinaryHashType | right |
Returns
Type | Description |
---|---|
System.Boolean |