bool class : ToString() method
Description
Gets the string representation of the boolean value.
Syntax
boolInstance.ToString()
Arguments
None
Return value
Class | Description |
string | The string representation of the boolean value. |
Sample code
//anyBool is a instance of bool type.
string stringRepresentation = anyBool.ToString();
Notes
It's a wrapper of the System.Boolean.ToString().
Returns "true" if the value is true. Otherwise, returns "false".