Share via


Object.ToString Method

Returns a string that represents the current instance (object) of the Object class.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public virtual string ToString ()

Return Value

A string that represents the current object.

Remarks

This method returns a human-readable text string that is culture-sensitive. For example, for a Double object whose value is 0 (zero), the implementation of the Double.ToString method might return "0.00" or "0,00", depending on the current system culture.

The default implementation returns the fully qualified name of the type of the Object object.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Object Class
Object Members
System Namespace