public override bool Equals(Object obj) { //return base.Equals(obj); if (!(obj is Centerr)) { return(false); } Centerr curObj = (Centerr)obj; if (this.DateAcceptFinish == curObj.DateAcceptFinish & this.DateAuctionStart == curObj.DateAuctionStart & this.internalID == curObj.internalID & this.LotNameStr == curObj.LotNameStr & this.LotNameUrl == curObj.LotNameUrl & this.LotNumberStr == curObj.LotNumberStr & this.LotNumberUrl == curObj.LotNumberUrl & this.Organizer.ItemString == curObj.Organizer.ItemString & this.Organizer.ItemUri == curObj.Organizer.ItemUri & this.PriceStart == curObj.PriceStart & this.Status == curObj.Status & this.TorgName.ItemString == curObj.TorgName.ItemString & this.TorgName.ItemUri == curObj.TorgName.ItemUri & this.TorgNumber.ItemString == curObj.TorgNumber.ItemString & this.TorgNumber.ItemUri == curObj.TorgNumber.ItemUri & this.TorgType == curObj.TorgType & this.Winner.ItemString == curObj.Winner.ItemString & this.Winner.ItemUri == curObj.Winner.ItemUri) { return(true); } return(false); }
private List <Centerr> GetListOfNewRecords(Centerr checkRowItem) // проверка только по одной записи { List <Centerr> inpList = (List <Centerr>) this.ListResponse; List <Centerr> result = new List <Centerr>(); if (inpList == null) { lastError = MyRequest.LastError(); return(result); } for (int i = 0; i < inpList.Count; i++) { //if (inpList[i].ToString() == checkRowItem.ToString()) if (inpList[i].Equals(checkRowItem)) { break; } result.Add(inpList[i]); } return(result); }