Hi,
Want to know how to insert a string at a particular position in C# ? See the following code.
using System; class MainClass { public static void Main() { string testStr= "Coderz Heaven"; testStr= testStr.Insert(6, "Codes"); Console.WriteLine(testStr); } }
It will print- “Coderz Codes Heaven”
🙂