示例#1
0
 public override int GetHashCode()
 {
     unchecked
     {
         // ReSharper disable NonReadonlyFieldInGetHashCode
         int hashCode = (Reason != null ? Reason.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Queue != null ? Queue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Exchange != null ? Exchange.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RoutingKeys != null ? RoutingKeys.GetHashCode() : 0);
         return(hashCode);
         // ReSharper restore NonReadonlyFieldInGetHashCode
     }
 }
示例#2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (Broker != null ? Broker.GetHashCode() : 0);
         result = (result * 397) ^ (VirtualHost != null ? VirtualHost.GetHashCode() : 0);
         result = (result * 397) ^ (Username != null ? Username.GetHashCode() : 0);
         result = (result * 397) ^ (Password != null ? Password.GetHashCode() : 0);
         result = (result * 397) ^ (Exchange != null ? Exchange.GetHashCode() : 0);
         result = (result * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0);
         result = (result * 397) ^ (RoutingKeys != null ? RoutingKeys.GetHashCode() : 0);
         result = (result * 397) ^ RouteByType.GetHashCode();
         return(result);
     }
 }