Click or drag to resize
StringBuilderReplace Method (Char, Char)
Replaces all occurrences of a specified character in this instance with another specified character.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: StringBuilder
A reference to this instance with oldChar replaced by newChar.
See Also