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

System.Text.StringBuilder.ToString Method

Returns a string representation of a substring of the current instance. [Edit]

public string ToString (int startIndex, int length)

Parameters

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

Returns

A new string representing the characters in the specified range. [Edit]

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.

[Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

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