<PackageReference Include="ReactiveUI.Primitives.Core" Version="7.5.0" />

ReactiveUI.Primitives.Core.TimeInterval<T>

public struct TimeInterval<T> : IEquatable<TimeInterval<T>>
Pairs a value with a producer-defined time interval.
public TimeSpan Interval { get; }

Gets the time interval associated with the value.

public T Value { get; }

Gets the annotated value.

public TimeInterval(T value, TimeSpan interval)

Initializes a new instance of the TimeInterval<T> struct.

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

Compares two annotated values for equality.

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

Compares two annotated values for inequality.

public bool Equals(TimeInterval<T> other)