Mono Class Library: System.String Overview | Members

System.String.Replace Method

Replaces all instances of a specified Unicode character with another specified Unicode character.

public string Replace (char oldChar, char newChar)

Parameters

oldChar
The Unicode character to be replaced.
newChar
The Unicode character to replace all occurrences of oldChar.

Returns

A string equivalent to the current instance with all occurrences of oldChar replaced with newChar.

Remarks

Documentation for this section has not yet been entered.

Requirements

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