StringBuilder.Replace Method (Char, Char)
Replaces all occurrences of a specified character in this instance with another specified character.
Assembly: mscorlib (in mscorlib.dll)
The character to replace.
The character that replaces oldChar.
Return ValueType: System.Text.StringBuilder
A reference to this instance with oldChar replaced by newChar.
This method performs an ordinal, case-sensitive comparison to identify occurrences of oldChar in the current instance. The size of the current StringBuilder instance is unchanged after the replacement.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1