public override int GetHashCode() { int result = Spname.GetHashCode(); result = 17 * result + Spmoney.GetHashCode(); result = 17 * result + Spnumber.GetHashCode(); return(result); }
public override int GetHashCode() { var hashCode = -2127770830; hashCode = hashCode * -1521134295 + Spnumber.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Spname); hashCode = hashCode * -1521134295 + Spmoney.GetHashCode(); return(hashCode); }