Method TryGetArray
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
TryGetArray(IReadOnlyDictionary<string, object?>, string)
Tries to get an untyped array value from a deserialized JSON object.
public static object?[]? TryGetArray(IReadOnlyDictionary<string, object?> obj, string key)
Parameters
objIReadOnlyDictionary<string, object>The deserialized JSON object
keystringThe key for the value
Returns
- object[]
TryGetArray(object?)
Tries to get an untyped array value from a deserialized JSON value.
public static object?[]? TryGetArray(object? value)
Parameters
valueobjectThe deserialized JSON value
Returns
- object[]