<PackageReference Include="System.Reactive" Version="6.0.1-preview.1" />
Timestamped
A helper class with a factory method for creating
Timestamped<T> instances.
using System.
Runtime.
CompilerServices;
namespace System.
Reactive
{
public static class Timestamped
{
[
System.
Runtime.
CompilerServices.
NullableContext(
1)]
[
return:
System.
Runtime.
CompilerServices.
Nullable(
new byte[] {
0,
1
})]
public static Timestamped<
T>
Create<[
System.
Runtime.
CompilerServices.
Nullable(
2)]
T>(
T value,
DateTimeOffset timestamp)
{
return new Timestamped<
T>(
value,
timestamp);
}
}
}