Share via


Boolean.ToString(Boolean) Method

Definition

Returns a String object representing the specified boolean.

[Android.Runtime.Register("toString", "(Z)Ljava/lang/String;", "")]
public static string ToString (bool b);
[<Android.Runtime.Register("toString", "(Z)Ljava/lang/String;", "")>]
static member ToString : bool -> string

Parameters

b
Boolean

the boolean to be converted

Returns

the string representation of the specified boolean

Attributes

Remarks

Returns a String object representing the specified boolean. If the specified boolean is true, then the string "true" will be returned, otherwise the string "false" will be returned.

Added in 1.4.

Java documentation for java.lang.Boolean.toString(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to