Example #1
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = TopicName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ NumberOfPartitions;
         hashCode = (hashCode * 397) ^ ReplicationFactor.GetHashCode();
         hashCode = (hashCode * 397) ^ (ReplicaAssignments?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Configs?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }