public override bool Equals(object obj) { CountEntry other = obj as CountEntry; if (other != null) { if (!Itmref.Equals(other.Itmref)) { return(false); } if (!LabelNumber.Equals(other.LabelNumber)) { return(false); } if (!Value.Equals(other.Value)) { return(false); } if (!Unit.Equals(other.Unit)) { return(false); } if (!Time.Equals(other.Time)) { return(false); } if (!IsDeleted.Equals(other.IsDeleted)) { return(false); } if (!Hash.Equals(other.Hash)) { return(false); } if (!Sync.Equals(other.Sync)) { return(false); } if (SyncCode != other.SyncCode) { return(false); } if (!Location.Equals(other.Location)) { return(false); } return(true); } return(base.Equals(obj)); }