public override int GetHashCode() { unchecked { var hashCode = SelectedAfter.HasValue ? SelectedAfter.GetHashCode() : -1; hashCode = (hashCode * 397) ^ Proposal.GetHashCode(); hashCode = (hashCode * 397) ^ Index.GetHashCode(); return(hashCode); } }
private bool Equals(ProposalSelection other) { return(SelectedAfter.Equals(other.SelectedAfter) && Equals(Proposal, other.Proposal) && Equals(Index, other.Index)); }