Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  bool  >  ToString()
bool class : ToString() method

Description

Gets the string representation of the boolean value.

Syntax

boolInstance.ToString()

Arguments

None

Return value

ClassDescription
stringThe 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".

Links for reference

Copyright © Rice All rights reserved.