[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns a string that represents the current object.
Assembly: mscorlib (in mscorlib.dll)
is the major formatting method in the .NET Framework. It converts an object to its string representation so that it is suitable for display.
The default implementation of the method returns the fully qualified name of the type of the Object.
Because Object is the base class of all reference types in the .NET Framework, this behavior is inherited by reference types that do not override the method.
Types commonly override the method to return a string that represents the object instance. For example, the base types such as Char, Int32, and String provide implementations that return the string form of the value that the object represents.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.