public object Clone() { OperationId opId = new OperationId(); opId.ElectionId = this.ElectionId; opId.ElectionBasedSequenceId = this.ElectionBasedSequenceId; opId.TimeStamp = this.TimeStamp; opId.Id = this.Id; return(opId); }
public override bool Equals(object obj) { OperationId opId = obj as OperationId; if (opId != null) { if (opId.ElectionId == this.ElectionId && opId.ElectionBasedSequenceId == this.ElectionBasedSequenceId) { return(true); } else { return(false); } } else { return(false); } }