示例#1
0
        public override bool Equals(object obj)
        {
            // If parameter is null return false.
            if (obj == null)
            {
                return(false);
            }

            // If parameter cannot be cast to DadTupleId return false.
            DadTupleId other = obj as DadTupleId;

            if ((object)other == null)
            {
                return(false);
            }

            // Return true if the fields match:
            return(string.Equals(OperatorId, other.OperatorId) && (ReplicaId == other.ReplicaId) && (SeqNumber == other.SeqNumber));
        }
示例#2
0
 public DadTuple(DadTupleId id, IList <string> content)
 {
     Id      = id;
     Content = content;
 }