Replaces all instances of a specified character in a specified range with another specified character.
The current instance after substitution has occurred.
Type Reason ArgumentOutOfRangeException The sum of startIndex and count is larger than the length of the current instance
-or-
startIndex or count is less than zero.
This method substitutes each occurrence of oldChar in the specified range of the current instance with newChar.
This method is case-sensitive.
Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0