Exemplo n.º 1
0
 /// <summary> Compares the hash </summary>
 public override int CompareTo(PasswordHash other)
 {
     if (((object)other) == null)
     {
         return(1);
     }
     return(BinaryComparer.Compare(_hash.ToArray(), other._hash.ToArray()));
 }
Exemplo n.º 2
0
 /// <summary> Compares the contents of the byte arrays and returns the result. </summary>
 int IComparer <byte[]> .Compare(byte[] x, byte[] y)
 {
     return(BinaryComparer.Compare(x, y));
 }
Exemplo n.º 3
0
 /// <summary> Returns true if the two objects are the same instance </summary>
 bool IEqualityComparer <byte[]> .Equals(byte[] x, byte[] y)
 {
     return(0 == BinaryComparer.Compare(x, y));
 }
Exemplo n.º 4
0
 /// <summary> Compares the hash codes and returns the result </summary>
 public override int CompareTo(Hash other)
 {
     return(other == null ? 1 : BinaryComparer.Compare(_hashCode, other._hashCode));
 }