A StringBuilder with all instances of a specified character replaced with a new character.
[Visual Basic] Overloads Public Function Replace( _ ByVal oldChar As Char, _ ByVal newChar As Char _ ) As StringBuilder [C#] public StringBuilder Replace( char oldChar, char newChar ); [C++] public: StringBuilder* Replace( __wchar_t oldChar, __wchar_t newChar ); [JScript] public function Replace( oldChar : Char, newChar : Char ) : StringBuilder;
A StringBuilder with oldChar replaced with newChar.
A StringBuilder with all instances of oldChar replaced with newChar. The size of the StringBuilder is unchanged because we're only replacing characters. This method is case-sensitive.
StringBuilder Class | StringBuilder Members | System.Text Namespace | StringBuilder.Replace Overload List