Mono Class Library: System.String Overview | Members

System.String.Replace Method

Replaces all instances of a specified substring within the current instance with another specified string. [Edit]

public string Replace (string oldValue, string newValue)

Parameters

oldValue
A string containing the string value to be replaced. [Edit]
newValue
A string containing the string value to replace all occurrences of oldValue. Can be a null reference. [Edit]

Returns

A string equivalent to the current instance with all occurrences of oldValue replaced with newValue. If the replacement value is a null reference, the specified substring is removed. [Edit]

Remarks

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

Requirements

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