public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ContractAmount != null ? ContractAmount.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (PrimaryRate != null ? PrimaryRate.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AdditionalRates != null ? AdditionalRates.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CommitRollover.GetHashCode();
         hashCode = (hashCode * 397) ^ (BillingPeriod != null ? BillingPeriod.GetHashCode() : 0);
         return(hashCode);
     }
 }
Esempio n. 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = HoursIncluded.GetHashCode();
         hashCode = (hashCode * 397) ^ (PricePerHour != null ? PricePerHour.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (OverageRate != null ? OverageRate.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CommitRollover.GetHashCode();
         hashCode = (hashCode * 397) ^ (BillingPeriod != null ? BillingPeriod.GetHashCode() : 0);
         return(hashCode);
     }
 }