JTokenUtility.AsDouble method

Returns a Double corresponding to the JToken if possible.

public static double? AsDouble(this JToken? jToken)

Return Value

This method returns null if the JToken is null, or if it doesn’t contain a number, or if that number overflows a Double.

See Also