Skip to content

Timestamped.Create(T, DateTimeOffset) method

Defined in

Type: Timestamped Namespace: System.Reactive Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static Timestamped<T> Create<T>(T value, DateTimeOffset timestamp)

Summary: Creates an instance of a Timestamped. This is syntactic sugar that uses type inference to avoid specifying a type in a constructor call, which is very useful when using anonymous types.

Type parameters

NameDescription
T--

Parameters

NameTypeDescription
valueTThe value to be annotated with a timestamp.
timestampDateTimeOffsetTimestamp associated with the value.

Returns: Timestamped -- Creates a new timestamped value.