public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ProductId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ProductName != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductName) : 0);
         hashCode = (hashCode * 397) ^ (ProductMark != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductMark) : 0);
         hashCode = (hashCode * 397) ^ Kc.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk1.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk2.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk3.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk4.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk5.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk6.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk1.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk2.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk3.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk4.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk5.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk6.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm1.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm2.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm3.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm4.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm5.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm6.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb1.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb2.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb3.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb4.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb5.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb6.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ProductId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ProductName != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductName) : 0);
         hashCode = (hashCode * 397) ^ (ProductMark != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductMark) : 0);
         hashCode = (hashCode * 397) ^ Kc.GetHashCode();
         hashCode = (hashCode * 397) ^ Uch.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk.GetHashCode();
         hashCode = (hashCode * 397) ^ Premper.GetHashCode();
         hashCode = (hashCode * 397) ^ Nadb.GetHashCode();
         hashCode = (hashCode * 397) ^ Prtnorm.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ProductId.GetHashCode();
         hashCode = (hashCode * 397) ^ (ProductName != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductName) : 0);
         hashCode = (hashCode * 397) ^ (ProductMark != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(ProductMark) : 0);
         hashCode = (hashCode * 397) ^ DetalId.GetHashCode();
         hashCode = (hashCode * 397) ^ (DetalName != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(DetalName) : 0);
         hashCode = (hashCode * 397) ^ (DetalMark != null ? StringComparer.OrdinalIgnoreCase.GetHashCode(DetalMark) : 0);
         hashCode = (hashCode * 397) ^ Kc.GetHashCode();
         hashCode = (hashCode * 397) ^ Kol.GetHashCode();
         hashCode = (hashCode * 397) ^ Vstk.GetHashCode();
         hashCode = (hashCode * 397) ^ Rstk.GetHashCode();
         return(hashCode);
     }
 }