toString Summary Converts the object to a string. Usage public virtual string toString() Returns The string representation of the object. Description Converts the object to a string. The string representation of an object will usually be in the form of [object CLASSNAME]. Examples Basic Usage 1234import System; System.Object obj = new System.Object();Console.log(obj.toString()); // "[object System.Object]" Share HTML | BBCode | Direct Link