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

System.Text.StringBuilder.Replace Method

Replaces all instances of a specified character in the current instance with another specified character.

public StringBuilder Replace (char oldChar, char newChar)

Parameters

oldChar
The char to replace.
newChar
The char with which to replace oldChar .

Returns

The current instance after substitution has occurred.

Remarks

This method substitutes each occurrence of oldChar in the current instance with newChar.

This method is case-sensitive.

Requirements

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