Method ToBoolean
ToBoolean()
Attempts to convert JSON value to boolean.
Declaration
public bool ToBoolean()
Returns
Type | Description |
---|---|
System.Boolean | Converted boolean value. |
Exceptions
Type | Condition |
---|---|
System.FormatException | The exception that is thrown when the format of an argument is invalid, or when a composite format string is not well formed. |
System.InvalidCastException | The exception that is thrown for invalid casting or explicit conversion. |