public override bool Equals(object other) { if (other == this) { return(true); } if (other == null || GetType() != other.GetType()) { return(false); } DescQueryTestCase.Item item = (DescQueryTestCase.Item)other; if (_id != item._id) { return(false); } return(_child == null ? item._child == null : _child.Equals(item._child)); }
public Item(int id, DescQueryTestCase.Item child) { // COR-2141 this._id = id; this._child = child; }