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

System.Text.StringBuilder.Insert Method

Inserts the string representation of a sbyte into the current instance at the specified index. [Edit]

[System.CLSCompliant(false)]
public StringBuilder Insert (int index, sbyte value)

Parameters

index
A int containing the index at which to insert. [Edit]
value
The sbyte to be inserted. [Edit]

Returns

The current instance after insertion has occurred. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeException

index is greater than the length of the current instance

-or-

index is less than zero

[Edit]

Remarks

This member is not CLS-compliant. For a CLS-compliant alternative, use StringBuilder.Insert(int, string, int)(int, short).

This method inserts value.ToString() into the current instance at the specified location. Existing characters are shifted to make room for the new text, and StringBuilder.Capacity is adjusted as necessary.

[Edit]

Requirements

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