Class GDIDRangeComparer
Compares GDID regardless of authority. This is useful for range checking, when authorities generating GDIDs in the same range should be disregarded. Use GDIDRangeComparer.Instance. Only relative range comparison can be made. The Equality returned by this comparer can not be relied upon for GDID comparison as it disregards authority. Equality can only be tested for range comparison.
Inheritance
System.Object
GDIDRangeComparer
Implements
System.Collections.Generic.IComparer<GDID>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Data
Assembly: Azos.dll
Syntax
public class GDIDRangeComparer : IComparer<GDID>
Fields
Instance
Declaration
public static readonly GDIDRangeComparer Instance
Field Value
Type | Description |
---|---|
GDIDRangeComparer |
Methods
Compare(GDID, GDID)
Declaration
public int Compare(GDID x, GDID y)
Parameters
Type | Name | Description |
---|---|---|
GDID | x | |
GDID | y |
Returns
Type | Description |
---|---|
System.Int32 |
Implements
System.Collections.Generic.IComparer<T>