Insert a character at specified location in string.
For example:
string strOne = "Rocks Rum";
string newStr = strOne.Insert(1, "u");
MessageBox.Show(newStr);
Output:
Ruocks Rum (at index 1 ‘u’ is inserted starting from 0th index)
0 comments:
Post a Comment