Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (RatePerGB != null ? RatePerGB.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CountBy != null ? CountBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (BillingPeriod != null ? BillingPeriod.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public bool Equals(CountBy <T> x, CountBy <T> y)
 {
     return(x.Value.Equals(y.Value) && x.Count == y.Count);
 }
Example #3
0
 public ConvertArrayAttribute(CountBy countBy)
 {
     CountBy = countBy;
 }
 public int GetHashCode(CountBy <T> obj)
 {
     return(obj.GetHashCode());
 }