Example #1
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);
     }
 }
Example #2
0
 private bool Equals(IContractHourBlockDetails other)
 {
     return(HoursIncluded.Equals(other.HoursIncluded) && Equals(PricePerHour, other.PricePerHour) && Equals(OverageRate, other.OverageRate) && CommitRollover == other.CommitRollover &&
            BillingPeriod == other.BillingPeriod);
 }