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
objIReadOnlyDictionary<string, object>The deserialized JSON object
keystringThe key for the value
Returns
TryGetDateTimeOffset(object?)
Tries to get a DateTimeOffset value from a deserialized JSON value.
public static DateTimeOffset? TryGetDateTimeOffset(object? value)
Parameters
valueobjectThe deserialized JSON value