public override int GetHashCode()
        {
            int hash = 1;

            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (ChargeCreditType != 0)
            {
                hash ^= ChargeCreditType.GetHashCode();
            }
            if (untaxedAmount_ != null)
            {
                hash ^= UntaxedAmount.GetHashCode();
            }
            if (TaxExempt != false)
            {
                hash ^= TaxExempt.GetHashCode();
            }
            if (incidentalItem_ != null)
            {
                hash ^= IncidentalItem.GetHashCode();
            }
            if (chargeOpsdate_ != null)
            {
                hash ^= ChargeOpsdate.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (amount_ != null)
            {
                hash ^= Amount.GetHashCode();
            }
            if (Narration.Length != 0)
            {
                hash ^= Narration.GetHashCode();
            }
            if (ChargeCreditType != 0)
            {
                hash ^= ChargeCreditType.GetHashCode();
            }
            if (effectiveForOpsdate_ != null)
            {
                hash ^= EffectiveForOpsdate.GetHashCode();
            }
            if (effectiveAtClock_ != null)
            {
                hash ^= EffectiveAtClock.GetHashCode();
            }
            if (incidentalItem_ != null)
            {
                hash ^= IncidentalItem.GetHashCode();
            }
            if (incurredBy_ != null)
            {
                hash ^= IncurredBy.GetHashCode();
            }
            if (IssuanceSchedule != 0)
            {
                hash ^= IssuanceSchedule.GetHashCode();
            }
            if (enteredBy_ != null)
            {
                hash ^= EnteredBy.GetHashCode();
            }
            if (id_ != null)
            {
                hash ^= Id.GetHashCode();
            }
            if (taxes_ != null)
            {
                hash ^= Taxes.GetHashCode();
            }
            if (fees_ != null)
            {
                hash ^= Fees.GetHashCode();
            }
            hash ^= currentTaxAssessments_.GetHashCode();
            return(hash);
        }