Esempio n. 1
0
 /// <summary>
 /// Determines whether the two byte arrays are equal.
 /// </summary>
 /// <param name="v1">The first byte array to compare.</param>
 /// <param name="v2">The second byte array to compare.</param>
 public static bool IsEqual(Byte[] v1, Byte[] v2)
 {
     return(Comparers.ByteArrayEqual(v1, v2));
 }
Esempio n. 2
0
 /// <summary>
 /// Compares two specified values and returns an integer that indicates their relative position in the sort order.
 /// </summary>
 /// <param name="x">The first string to compare.</param>
 /// <param name="y">The second string to compare.</param>
 public int Compare(byte[] x, byte[] y)
 {
     return(Comparers.ByteArrayComparer(x, y));
 }
Esempio n. 3
0
 /// <summary>
 /// Determines whether the two Guid values are equal.
 /// </summary>
 /// <param name="v1">The first value to compare.</param>
 /// <param name="v2">The second value to compare.</param>
 public static bool IsEqual(Guid v1, Guid v2)
 {
     return(Comparers.GuidEqual(v1, v2));
 }