Beispiel #1
0
 public int Compare(Guid?x, Guid?y)
 {
     if (x == null && y == null)
     {
         return(0);
     }
     if (x == null)
     {
         return(-1);
     }
     if (y == null)
     {
         return(1);
     }
     return(ComparableByteArray.CompareTo(x.Value.ToByteArray(), y.Value.ToByteArray()));
 }
Beispiel #2
0
 public static int GetDifference(Guid x, Guid y)
 {
     return(ComparableByteArray.CompareTo(x.ToByteArray(), y.ToByteArray()));
 }
Beispiel #3
0
 public int Compare(Guid x, Guid y)
 {
     return(ComparableByteArray.CompareTo(x.ToByteArray(), y.ToByteArray()));
 }
Beispiel #4
0
 public static bool IsGreaterThanOrEqual(Guid x, Guid y)
 {
     return(ComparableByteArray.CompareTo(x.ToByteArray(), y.ToByteArray()) >= 0);
 }