Replace a character wherever it finds the same.
For example:
string strOne = "Rocks Rum";
string newStr = strOne.Replace('R', 'S');
MessageBox.Show(newStr);
Output:
Socks Sum (replacing ‘R’ with ‘S’ wherever it finds the 'S')
0 comments:
Post a Comment