BitSharper.Sha256Hash.GetHashCode C# (CSharp) Method

GetHashCode() public method

Hash code of the byte array as calculated by object.GetHashCode. Note the difference between a SHA256 secure bytes and the type of quick/dirty bytes used by the Java hashCode method which is designed for use in bytes tables.
public GetHashCode ( ) : int
return int
        public override int GetHashCode()
        {
            return _bytes != null ? _bytes.Aggregate(1, (current, element) => 31*current + element) : 0;
        }

Usage Example

Esempio n. 1
0
 public override int GetHashCode()
 {
     return(Hash.GetHashCode());
 }