JArrayExtensions.GetUInt16 method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Json.Extensions
Assembly Skybrud.Essentials.dll

GetUInt16(JArray, int)

Extension method

Gets the UInt16 value of the item at the specified index in the array.

public static UInt16 GetUInt16(this JArray array, int index)

Parameters

array JArray

The parent array.

index int

The index of the item.

Returns

An instance of UInt16 .

GetUInt16(JArray, string)

Extension method

Gets the UInt16 value of the token matching the specified path, or 0 if path doesn't match a token.

public static UInt16 GetUInt16(this JArray array, string path)

Parameters

array JArray

The parent array.

path String

A String that contains a JPath expression.

Returns

An instance of UInt16 .