<PackageReference Include="System.Reactive" Version="5.0.0-preview.16" />

Timestamped<T>

public struct Timestamped<T> : IEquatable<Timestamped<T>>
Represents value with a timestamp on it. The timestamp typically represents the time the value was received, using an IScheduler's clock to obtain the current time.
public DateTimeOffset Timestamp { get; }

Gets the timestamp.

public T Value { get; }

Gets the value.

public Timestamped(T value, DateTimeOffset timestamp)

Constructs a timestamped value.

public static bool op_Equality(Timestamped<T> first, Timestamped<T> second)

Determines whether the two specified Timestamped<T> values have the same Value and Timestamp.

public static bool op_Inequality(Timestamped<T> first, Timestamped<T> second)

Determines whether the two specified Timestamped<T> values don't have the same Value and Timestamp.

public bool Equals(Timestamped<T> other)

Determines whether the current Timestamped<T> value has the same Value and Timestamp as a specified Timestamped<T> value.