Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((PrimaryRate != null ? PrimaryRate.GetHashCode() : 0) * 397) ^ (AdditionalRates != null ? AdditionalRates.GetHashCode() : 0));
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (PrimaryRate != null ? PrimaryRate.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (AdditionalRates != null ? AdditionalRates.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingPeriod != null ? BillingPeriod.GetHashCode() : 0);
         return(hashCode);
     }
 }
 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);
     }
 }