Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hashCode = 29476180;

            if (Name != null)
            {
                hashCode += Name.GetHashCode();
            }

            if (CalculationPhase != null)
            {
                hashCode += CalculationPhase.GetHashCode();
            }

            if (InclusionType != null)
            {
                hashCode += InclusionType.GetHashCode();
            }

            if (Percentage != null)
            {
                hashCode += Percentage.GetHashCode();
            }

            if (AppliesToCustomAmounts != null)
            {
                hashCode += AppliesToCustomAmounts.GetHashCode();
            }

            if (Enabled != null)
            {
                hashCode += Enabled.GetHashCode();
            }

            return(hashCode);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hashCode = 2123751229;

            if (Errors != null)
            {
                hashCode += Errors.GetHashCode();
            }

            if (Name != null)
            {
                hashCode += Name.GetHashCode();
            }

            if (AppliedMoney != null)
            {
                hashCode += AppliedMoney.GetHashCode();
            }

            if (Rate != null)
            {
                hashCode += Rate.GetHashCode();
            }

            if (InclusionType != null)
            {
                hashCode += InclusionType.GetHashCode();
            }

            if (FeeId != null)
            {
                hashCode += FeeId.GetHashCode();
            }

            return(hashCode);
        }