public override int GetHashCode() { unchecked { var hashCode = ProductId.GetHashCode(); hashCode = (hashCode * 397) ^ (ProductMark != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductMark) : 0); hashCode = (hashCode * 397) ^ (ProductName != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductName) : 0); hashCode = (hashCode * 397) ^ Vstk2.GetHashCode(); hashCode = (hashCode * 397) ^ Rstk2.GetHashCode(); hashCode = (hashCode * 397) ^ Prtnorm2.GetHashCode(); hashCode = (hashCode * 397) ^ Nadb2.GetHashCode(); hashCode = (hashCode * 397) ^ Vstk3.GetHashCode(); hashCode = (hashCode * 397) ^ Rstk3.GetHashCode(); hashCode = (hashCode * 397) ^ Prtnorm3.GetHashCode(); hashCode = (hashCode * 397) ^ Nadb3.GetHashCode(); hashCode = (hashCode * 397) ^ Vstk4.GetHashCode(); hashCode = (hashCode * 397) ^ Rstk4.GetHashCode(); hashCode = (hashCode * 397) ^ Prtnorm4.GetHashCode(); hashCode = (hashCode * 397) ^ Nadb4.GetHashCode(); hashCode = (hashCode * 397) ^ Vstk5.GetHashCode(); hashCode = (hashCode * 397) ^ Rstk5.GetHashCode(); hashCode = (hashCode * 397) ^ Prtnorm5.GetHashCode(); hashCode = (hashCode * 397) ^ Nadb5.GetHashCode(); hashCode = (hashCode * 397) ^ Vstk21.GetHashCode(); hashCode = (hashCode * 397) ^ Rstk21.GetHashCode(); hashCode = (hashCode * 397) ^ Prtnorm21.GetHashCode(); hashCode = (hashCode * 397) ^ Nadb21.GetHashCode(); hashCode = (hashCode * 397) ^ VstkZavod.GetHashCode(); hashCode = (hashCode * 397) ^ RstkZavod.GetHashCode(); hashCode = (hashCode * 397) ^ PrtnormZavod.GetHashCode(); hashCode = (hashCode * 397) ^ NadbZavod.GetHashCode(); return(hashCode); } }