Declaration
public ConsoleColoredString Replace(
char oldChar,
char newChar
)
Summary
Returns a new
ConsoleColoredString in which every occurrence of
oldChar is
replaced with
newChar while each character’s color remains unchanged.
Parameters
char | oldChar |
The character to search for. |
char | newChar |
The character to replace every occurrence of oldChar with. |
Returns
The new string after replacements.