public bool Equals(Candidate otherObj) { return otherObj.MirId == this.MirId && otherObj.PartyId == this.PartyId && otherObj.PartyType == this.PartyType && otherObj.Name == this.Name; }