/// <inheritdoc />
 public bool Equals(ConsumerMemberAssignment other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Version == other.Version &&
            PartitionAssignments.HasEqualElementsInOrder(other.PartitionAssignments) &&
            UserData.HasEqualElementsInOrder(other.UserData));
 }
Пример #2
0
 public override string ToString() => $"{{Length:{Bytes.Count},Assignments:[{PartitionAssignments.ToStrings()}]}}";
 public override string ToString() => $"{{Version:{Version},Assignments:[{PartitionAssignments.ToStrings()}],UserData:{UserData.Count}}}";