JTokenUtility.AsDecimal method

Returns a Decimal corresponding to the JToken if possible.

public static decimal? AsDecimal(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 Decimal.

See Also