JTokenUtility.AsInt64 method

Returns an Int64 corresponding to the JToken if possible.

public static long? AsInt64(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 an Int64, or if that number was parsed as floating-point.

See Also