Table of Contents

Method TryGetDateTimeOffset

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

TryGetDateTimeOffset(IReadOnlyDictionary<string, object?>, string)

Tries to get a DateTimeOffset value from a deserialized JSON object.

public static DateTimeOffset? TryGetDateTimeOffset(IReadOnlyDictionary<string, object?> obj, string key)

Parameters

obj IReadOnlyDictionary<string, object>

The deserialized JSON object

key string

The key for the value

Returns

DateTimeOffset?

TryGetDateTimeOffset(object?)

Tries to get a DateTimeOffset value from a deserialized JSON value.

public static DateTimeOffset? TryGetDateTimeOffset(object? value)

Parameters

value object

The deserialized JSON value

Returns

DateTimeOffset?