Ejemplo n.º 1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Sha1?.GetHashCode() ?? 0;
         result = (result * 397) ^ (Sha1New?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Sha256?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Sha256New?.GetHashCode() ?? 0);
         return(result);
     }
 }
Ejemplo n.º 2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Sha1 != null ? Sha1.GetHashCode() : 0);
         result = (result * 397) ^ (Sha1New != null ? Sha1New.GetHashCode() : 0);
         result = (result * 397) ^ (Sha256 != null ? Sha256.GetHashCode() : 0);
         result = (result * 397) ^ (Sha256New != null ? Sha256New.GetHashCode() : 0);
         return(result);
     }
 }