Пример #1
0
 private int CalculateHashCode()
 {
     unchecked
     {
         return((Uri.GetHashCode() * 397) ^ Identity.ComputeHash());
     }
 }
Пример #2
0
 private int CalculateHashCode()
 {
     unchecked
     {
         var hashCode = Identity.ComputeHash();
         hashCode = (hashCode * 397) ^ Version;
         hashCode = (hashCode * 397) ^ Partition.ComputeHash();
         return(hashCode);
     }
 }
Пример #3
0
 private int CalculateHashCode()
 => Identity.ComputeHash();
Пример #4
0
 public Instance(string identity)
 {
     this.identity = identity;
     Identity      = identity.GetBytes();
     hashCode      = Identity.ComputeHash();
 }
Пример #5
0
 protected virtual int CalculateHashCode()
 => HashCode.Combine(Identity.ComputeHash(), Version, Partition.ComputeHash());