valueOf Summary Returns the primitive string value wrapped by the System.String object. Usage public string valueOf() Returns The primitive string value wrapped by the System.String object. Description Returns the primitive string value wrapped by the System.String object. Examples Basic Usage 1234import System; System.String s = new System.String("abc");Console.log(s.valueOf()); // "abc" Share HTML | BBCode | Direct Link