/// <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())); }
/// <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)); }
/// <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)); }
/// <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)); }