Search Results for

    Show / Hide Table of Contents

    Class Timestamped

    A helper class with a factory method for creating Timestamped<T> instances.

    Inheritance
    Object
    Timestamped
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: System.Reactive
    Assembly: System.Reactive.Linq.dll
    Syntax
    public static class Timestamped

    Methods

    | Improve this Doc View Source

    Create<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
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX