Returns a String that represents the current Object.
[Visual Basic] Overridable Public Function ToString() As String [C#] public virtual string ToString(); [C++] public: virtual String* ToString(); [JScript] public function ToString() : String;
A String that represents the current Object.
The default implementation returns the fully qualified name of the class of the Object.
This method can be overridden by a derived class to produce more meaningful results. For example, the base data types return their value.
// Prints out: "System.Object" Object *o = new Object(); Console->WriteLine (o->ToString());