Example #1
0
 /// <summary>
 /// Determines whether the current Timestamped&lt;T&gt; value has the same Value and Timestamp as a specified Timestamped&lt;T&gt; value.
 /// </summary>
 /// <param name="other">An object to compare to the current Timestamped&lt;T&gt; value.</param>
 /// <returns>true if both Timestamped&lt;T&gt; values have the same Value and Timestamp; otherwise, false.</returns>
 public bool Equals(Timestamped <T> other)
 {
     return(other.Timestamp.Equals(Timestamp) && EqualityComparer <T> .Default.Equals(Value, other.Value));
 }
 public bool Equals(Timestamped <T> other)
 {
     return(other.Timestamp.Equals(this.Timestamp) && EqualityComparer <T> .get_Default().Equals(this.Value, other.Value));
 }