StringBuilder.Replace Method (String, String)
Replaces all occurrences of a specified string in this instance with another specified string.
Assembly: mscorlib (in mscorlib.dll)
The string to replace.
The string that replaces oldValue, or null.
Return ValueType: System.Text.StringBuilder
A reference to this instance with all instances of oldValue replaced by newValue.
This method performs an ordinal, case-sensitive comparison to identify occurrences of oldValue in the current instance. If newValue is nullorString.Empty, all occurrences of oldValue are removed.
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