/// <summary> /// Determines whether the current Timestamped<T> value has the same Value and Timestamp as a specified Timestamped<T> value. /// </summary> /// <param name="other">An object to compare to the current Timestamped<T> value.</param> /// <returns>true if both Timestamped<T> 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)); }