+92 332 4229 857 99ProjectIdeas@Gmail.com

String Insert Function (C#.net)






   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: