Class Timestamped
A helper class with a factory method for creating Timestamped<T> instances.
Inherited Members
Namespace: System.Reactive
Assembly: System.Reactive.Linq.dll
Syntax
public static class Timestamped
Methods
| Improve this Doc View SourceCreate<T>(T, DateTimeOffset)
Creates an instance of a Timestamped<T>. 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.
Declaration
public static Timestamped<T> Create<T>(T value, DateTimeOffset timestamp)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to be annotated with a timestamp. |
DateTimeOffset | timestamp | Timestamp associated with the value. |
Returns
Type | Description |
---|---|
Timestamped<T> | Creates a new timestamped value. |
Type Parameters
Name | Description |
---|---|
T |