Example #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeStamp.GetHashCode();
         hashCode = (hashCode * 397) ^ (RealmSlug?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ MeanValue.GetHashCode();
         hashCode = (hashCode * 397) ^ AdjustedMeanValue.GetHashCode();
         hashCode = (hashCode * 397) ^ LowestValue.GetHashCode();
         hashCode = (hashCode * 397) ^ HighestValue.GetHashCode();
         hashCode = (hashCode * 397) ^ Quantity;
         return(hashCode);
     }
 }
Example #2
0
 protected bool Equals(ItemData other)
 {
     return(Id == other.Id && TimeStamp.Equals(other.TimeStamp) && string.Equals(RealmSlug, other.RealmSlug) && MeanValue.Equals(other.MeanValue) && AdjustedMeanValue.Equals(other.AdjustedMeanValue) && LowestValue.Equals(other.LowestValue) && HighestValue.Equals(other.HighestValue) && Quantity == other.Quantity);
 }