+92 332 4229 857 99ProjectIdeas@Gmail.com

String Replace Function (C#.net)





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: