JObjectExtension.GetDouble method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Json.Extensions |
|---|---|
| Assembly | Skybrud.Essentials.dll |
GetDouble(JObject, string)
Static
Gets the Double value of the token matching the specified path, or
0 if path doesn't match a token.
public static double GetDouble(JObject obj, string path)
GetDouble<T>(JObject, string, Func<T, TResult>)
Static
Gets the Double value of the token matching the specified path and parses
it into an instance of T, or the default value of T if path doesn't
match a token.
public static T GetDouble<T>(JObject obj, string path, Func<T, TResult> callback)
Type Parameters
T
Parameters
obj
JObject
The parent object.
A callback function used for parsing or converting the token value.
Returns
T
An instance of Double , or 0 if path doesn't
match a token.