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
valueGuidThe 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
valueReadOnlySpan<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
otherId
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
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
writerUtf8JsonWriterThe Utf8JsonWriter to write the json representation of the id to.
asPropertyNameboolA bool indicating if the Id is to be a property name or a value. The default is value.
ToString()
public override string ToString()