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
| Name | Description |
|---|---|
T | -- |
Parameters
| Name | Type | Description |
|---|---|---|
value | T | The value to be annotated with a timestamp. |
timestamp | DateTimeOffset | Timestamp associated with the value. |
Returns: Timestamped