Esempio n. 1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = PetId;
         hashCode = (hashCode * 397) ^ MetricId;
         hashCode = (hashCode * 397) ^ Value;
         hashCode = (hashCode * 397) ^ LastInteractionTime.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
 protected bool Equals(PetMetric other)
 {
     return(PetId == other.PetId && MetricId == other.MetricId && Value == other.Value &&
            LastInteractionTime.HumanEquals(other.LastInteractionTime));
 }