Table of Contents

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 Guid

The 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

value string

The string representation of GuidId.

Methods

CompareTo(Id?)

public override int CompareTo(Id? other)

Parameters

other Id

Returns

int

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

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 Utf8JsonWriter

The Utf8JsonWriter to write the json representation of the id to.

asPropertyName bool

A bool indicating if the Id is to be a property name or a value. The default is value.

ToString()

public override string ToString()

Returns

string