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 123456import System; System.Boolean a = new System.Boolean(true);System.Boolean b = new System.Boolean(false);Console.log(a.valueOf()); // trueConsole.log(b.valueOf()); // false Share HTML | BBCode | Direct Link