public override int GetHashCode() { unchecked { var hashCode = (Protocol != null ? Protocol.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (TopicName != null ? TopicName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (QueueName != null ? QueueName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (SubscriptionName != null ? SubscriptionName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (ConnectionName != null ? ConnectionName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Durable.GetHashCode(); return(hashCode); } }