コード例 #1
0
 public bool Equals(Topic other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(String.Equals(TopicName, other.TopicName) &&
            NumberOfPartitions == other.NumberOfPartitions &&
            ReplicationFactor == other.ReplicationFactor &&
            ReplicaAssignments.HasEqualElementsInOrder(other.ReplicaAssignments) &&
            Configs.HasEqualElementsInOrder(other.Configs));
 }