Mono Class Library: System.Text.StringBuilder Overview | Members

System.Text.StringBuilder.ToString Method

Returns a string representation of a substring of the current instance.

public string ToString (int startIndex, int length)

Parameters

startIndex
A int containing the index at which the substring begins.
length
A int containing the length of the substring.

Returns

A new string representing the characters in the specified range.

Exceptions

TypeReason
ArgumentOutOfRangeException

startIndex or length is less than zero.

-or-

The sum of startIndex and length is greater than the length of the current instance.

Remarks

Documentation for this section has not yet been entered.

Requirements

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