Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = 17;

                hash = hash * 23 + Index;
                hash = hash * 23 + PreviousHash?.GetHashCode() ?? 0;
                hash = hash * 23 + Timestamp.GetHashCode();
                hash = hash * 23 + Data?.GetHashCode() ?? 0;
                hash = hash * 23 + Hash?.GetHashCode() ?? 0;

                return(hash);
            }
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     return(Index.GetHashCode() ^
            PreviousHash?.GetHashCode() ?? 0 ^
            Digest.GetHashCode());
 }
Ejemplo n.º 3
0
 public override int GetHashCode()
 {
     return(DataGraphIri.GetHashCode() + DataHash.GetHashCode() + Hash.GetHashCode() + Index.GetHashCode() + PreviousBlock.GetHashCode() + PreviousHash.GetHashCode() + Timestamp.GetHashCode());
 }