public override int GetHashCode() { return(Cpr.GetHashCode() ^ GivenName.GetHashCode() ^ SurName.GetHashCode() ^ Email.GetHashCode() ^ Occupation.GetHashCode() ^ Role.GetHashCode() ^ AuthorizationCode.GetHashCode()); }
/// <summary> /// Calculate the hash code of the instance. /// </summary> /// <returns>The hash code of the instance.</returns> public override int GetHashCode() { unchecked { var result = DbId; result = (result * 397) ^ (FirstName != null ? FirstName.GetHashCode() : 0); result = (result * 397) ^ (LastName != null ? LastName.GetHashCode() : 0); result = (result * 397) ^ (Street != null ? Street.GetHashCode() : 0); result = (result * 397) ^ (City != null ? City.GetHashCode() : 0); result = (result * 397) ^ (Cpr != null ? Cpr.GetHashCode() : 0); result = (result * 397) ^ VoterId; result = (result * 397) ^ (PollingVenue != null ? PollingVenue.GetHashCode() : 0); result = (result * 397) ^ (PollingTable != null ? PollingTable.GetHashCode() : 0); result = (result * 397) ^ Voted.GetHashCode(); result = (result * 397) ^ VotedTime; result = (result * 397) ^ (VotedPollingTable != null ? VotedPollingTable.GetHashCode() : 0); result = (result * 397) ^ Exists.GetHashCode(); return(result); } }