StringBuilderReplace Method (Char, Char) |
Replaces all occurrences of a specified character in this instance with another specified character.
Namespace: System.TextAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public StringBuilder Replace(
char oldChar,
char newChar
)
Parameters
- oldChar
- Type: SystemChar
The character to replace. - newChar
- Type: SystemChar
The character that replaces oldChar.
Return Value
Type:
StringBuilderA reference to this instance with
oldChar replaced by
newChar.
See Also