Skip to content

GuidId Methods

A unique identifier based on a GuidId.

CompareTo(GuidId?)

View source
public int CompareTo(GuidId? other)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Parameters

otherGuidId?
An object to compare with this instance.

Returns

A value that indicates the relative order of the objects being compared. The return value has these meanings:
Value Meaning
Less than zero This instance precedes other in the sort order.
Zero This instance occurs in the same position in the sort order as other.
Greater than zero This instance follows other in the sort order.

Equals(GuidId?)

View source
public bool Equals(GuidId? other)
Indicates whether the current object is equal to another object of the same type.

Parameters

otherGuidId?
An object to compare with this object.

Returns

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

override
View source
public override bool Equals(object? obj)
Determines whether the specified object is equal to the current object.

Parameters

objobject?
The object to compare with the current object.

Returns

true if the specified object is equal to the current object; otherwise, false.

GetHashCode

override
View source
public override int GetHashCode()
Serves as the default hash function.

Returns

A hash code for the current object.

GetObjectData(SerializationInfo, StreamingContext)

View source
public void GetObjectData(SerializationInfo info, StreamingContext context)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.

Parameters

infoSerializationInfo
The System.Runtime.Serialization.SerializationInfo to populate with data.
contextStreamingContext
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.

Exceptions

System.Security.SecurityException
The caller does not have the required permission.

ToString

override
View source
public override string ToString()
Returns a string that represents the current object.

Returns

A string that represents the current object.

operator ==(GuidId?, GuidId?)

static
View source
public static bool operator ==(GuidId? left, GuidId? right)
Compares the provided operands for equality.

Parameters

leftGuidId?
The left operand.
rightGuidId?
The right operand.

Returns

true if the provided values are equal, otherwise false.

operator !=(GuidId?, GuidId?)

static
View source
public static bool operator !=(GuidId? left, GuidId? right)
Compares the provided operands for inequality.

Parameters

leftGuidId?
The left operand.
rightGuidId?
The right operand.

Returns

true if the provided values are not equal, otherwise false.