Hi,
Want to know how to replace a string in C#? See the following code.
using System; class MainClass { public static void Main() { string testStr= "Coderz"; testStr= testStr.Replace("erz", "ings"); Console.WriteLine(testStr); } }
Guess output?
“Codings”
🙂