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); } }
public int CompareTo(SummeryOfProductInContextOfWorkGuildAndAreaForWorkGuild other) { const StringComparison ordinalIgnorCase = StringComparison.OrdinalIgnoreCase; if (ReferenceEquals(this, other)) { return(0); } if (ReferenceEquals(null, other)) { return(1); } var productIdComparison = ProductId.CompareTo(other.ProductId); if (productIdComparison != 0) { return(productIdComparison); } var productNameComparison = string.Compare(ProductName, other.ProductName, ordinalIgnorCase); if (productNameComparison != 0) { return(productNameComparison); } var productMarkComparison = string.Compare(ProductMark, other.ProductMark, ordinalIgnorCase); if (productMarkComparison != 0) { return(productMarkComparison); } var kcComparison = Kc.CompareTo(other.Kc); if (kcComparison != 0) { return(kcComparison); } var uchComparison = Uch.CompareTo(other.Uch); if (uchComparison != 0) { return(uchComparison); } var vstkComparison = Vstk.CompareTo(other.Vstk); if (vstkComparison != 0) { return(vstkComparison); } var rstkComparison = Rstk.CompareTo(other.Rstk); if (rstkComparison != 0) { return(rstkComparison); } var premperComparison = Premper.CompareTo(other.Premper); if (premperComparison != 0) { return(premperComparison); } var nadbComparison = Nadb.CompareTo(other.Nadb); if (nadbComparison != 0) { return(nadbComparison); } return(Prtnorm.CompareTo(other.Prtnorm)); }
public int CompareTo(CalculationNumberWorkguildWorkersRealase other) { const StringComparison ordinalIgnoreCase = StringComparison.OrdinalIgnoreCase; if (ReferenceEquals(this, other)) { return(0); } if (ReferenceEquals(null, other)) { return(1); } var professionIdComparison = ProfessionId.CompareTo(other.ProfessionId); if (professionIdComparison != 0) { return(professionIdComparison); } var professionNameComparison = string.Compare(ProfessionName, other.ProfessionName, ordinalIgnoreCase); if (professionNameComparison != 0) { return(professionNameComparison); } var productIdComparison = ProductId.CompareTo(other.ProductId); if (productIdComparison != 0) { return(productIdComparison); } var productMarkComparison = string.Compare(ProductMark, other.ProductMark, ordinalIgnoreCase); if (productMarkComparison != 0) { return(productMarkComparison); } var productNameComparison = string.Compare(ProductName, other.ProductName, ordinalIgnoreCase); if (productNameComparison != 0) { return(productNameComparison); } var kcComparison = Kc.CompareTo(other.Kc); if (kcComparison != 0) { return(kcComparison); } var uchComparison = Uch.CompareTo(other.Uch); if (uchComparison != 0) { return(uchComparison); } var vstkComparison = Vstk.CompareTo(other.Vstk); if (vstkComparison != 0) { return(vstkComparison); } var rstkComparison = Rstk.CompareTo(other.Rstk); if (rstkComparison != 0) { return(rstkComparison); } var prtnormComparison = Prtnorm.CompareTo(other.Prtnorm); if (prtnormComparison != 0) { return(prtnormComparison); } var nadbComparison = Nadb.CompareTo(other.Nadb); if (nadbComparison != 0) { return(nadbComparison); } return(Vypusk.CompareTo(other.Vypusk)); }