Table of Contents

Method TryGetLong

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

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

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

public static long? TryGetLong(IReadOnlyDictionary<string, object?> obj, string key)

Parameters

obj IReadOnlyDictionary<string, object>

The deserialized JSON object

key string

The key for the value

Returns

long?

TryGetLong(object?)

Tries to get an long value from a deserialized JSON value.

public static long? TryGetLong(object? value)

Parameters

value object

The deserialized JSON value

Returns

long?