Exemplo n.º 1
0
 /// <inheritdoc cref="IEquatable{T}.Equals(T)"/>
 public bool Equals(Readings other)
 {
     if (other == null)
     {
         return(false);
     }
     return(FetchedTime.Equals(other.FetchedTime) && MeasuredTime.Equals(other.MeasuredTime));
 }
Exemplo n.º 2
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + FetchedTime.GetHashCode();
         hash = hash * 23 + MeasuredTime.GetHashCode();
         return(hash);
     }
 }