System.Text.StringBuilder.ToString Method

Converts the value of this instance to a string.

Syntax

public override string ToString ()

Returns

A string whose value is the same as this instance.

Remarks

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

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0