Exemplo n.º 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = OldLocalRateLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ NewLocalRateLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ OldGlobalRateLimit.GetHashCode();
         hashCode = (hashCode * 397) ^ NewGlobalRateLimit.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = EqualityComparer <TK> .Default.GetHashCode(Key);

                hashCode = (hashCode * 397) ^ OldLocalRateLimit.GetHashCode();
                hashCode = (hashCode * 397) ^ NewLocalRateLimit.GetHashCode();
                hashCode = (hashCode * 397) ^ OldGlobalRateLimit.GetHashCode();
                hashCode = (hashCode * 397) ^ NewGlobalRateLimit.GetHashCode();
                return(hashCode);
            }
        }