Replaces all instances of a specified string with another specified string.
The current instance after substitution has occurred.
Type Reason ArgumentNullException oldValue is a null reference. ArgumentException The length of oldvalue is zero.
This method substitutes each occurrence of oldValue in the current instance with newValue.
Note: If newValue is null , instances of oldValue are removed.This method is case-sensitive.
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0