Table of Contents

Class TimestampedDataValueExtensions

Namespace
Acuit.Pinpoint.IO.Testing.Data
Assembly
Acuit.Pinpoint.IO.Testing.Abstractions.dll

Timestamp extension methods for IDataValue.

public static class TimestampedDataValueExtensions
Inheritance
TimestampedDataValueExtensions
Inherited Members

Methods

TryGetTimestamp(IDataValue, out DateTimeOffset)

Tries to gets the timestamp of a data value.

public static bool TryGetTimestamp(this IDataValue dataValue, out DateTimeOffset timestamp)

Parameters

dataValue IDataValue

The data value.

timestamp DateTimeOffset

On return, the timestamp of the dataValue or any of its inner values, if one implements ITimestampedDataValue; otherwise, the default DateTimeOffset value.

Returns

bool

true if the data value has a timestamp; otherwise, false.

Exceptions

ArgumentNullException

dataValue is null.