Class GuidId
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Internal class for optimal storage of Guid id value.
public class GuidId : Id, IComparable<Id>
- Inheritance
-
GuidId
- Implements
- Inherited Members
Constructors
GuidId(Guid)
Initializes a new instance of the GuidId class.
public GuidId(Guid value)
Parameters
value
GuidThe unique identifier.
Exceptions
- ArgumentNullException
Guid is null.
GuidId(in ReadOnlySpan<byte>)
Initializes a new instance of the GuidId class.
public GuidId(in ReadOnlySpan<byte> value)
Parameters
value
ReadOnlySpan<byte>The string representation of GuidId.
GuidId(string)
Initializes a new instance of the GuidId class.
public GuidId(string value)
Parameters
Methods
CompareTo(Id?)
public override int CompareTo(Id? other)
Parameters
other
Id
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetValue()
Internal method that gets the boxed value of the underlying identifier.
public override object GetValue()
Returns
- object
value of the database identifier.
SerializeId(Utf8JsonWriter, bool)
An method used to write the json representation of the id to the provided Utf8JsonWriter.
public override void SerializeId(Utf8JsonWriter writer, bool asPropertyName = false)
Parameters
writer
Utf8JsonWriterThe Utf8JsonWriter to write the json representation of the id to.
asPropertyName
boolA bool indicating if the Id is to be a property name or a value. The default is value.
ToString()
public override string ToString()