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. [Edit]

public StringBuilder Replace (char oldChar, char newChar)

Parameters

oldChar
The char to replace. [Edit]
newChar
The char with which to replace oldChar . [Edit]

Returns

The current instance after substitution has occurred. [Edit]

Remarks

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

This method is case-sensitive.

[Edit]

Requirements

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