ToString Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Converts the value of this instance to a String.

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

public override string ToString()

Return Value

Type: System..::..String
A string whose value is the same as this instance.

You must call the ToString method to convert the StringBuilder object to a String object before you can pass the string represented by the StringBuilder object to a method that has a String parameter or display it in the user interface.

Show: