valueOf

Summary

Returns the primitive Boolean value wrapped by the System.Boolean object.

Usage

public bool valueOf()

Returns

The primitive Boolean value wrapped by the System.Boolean object.

Description

Returns the primitive Boolean value wrapped by the System.Boolean object.

Examples

Basic Usage
1
2
3
4
5
6
import System;
 
System.Boolean a = new System.Boolean(true);
System.Boolean b = new System.Boolean(false);
Console.log(a.valueOf()); // true
Console.log(b.valueOf()); // false

Share

HTML | BBCode | Direct Link