Replace substring : String Insert Replace « String « C# / CSharp Tutorial






using System;

  class Class1
  {
    [STAThread]
    static void Main(string[] args)
    {
            string replaceStr = "1234";
            string dest = "ABCDEFGHWXYZ";

            dest = dest.Replace( "EFGH", replaceStr );

            Console.WriteLine( dest );

    }
    }








5.15.String Insert Replace
5.15.1.String Inserting
5.15.2.Replace string
5.15.3.Replace characters
5.15.4.Replace substring
5.15.5.Reversing Characters
5.15.6.Reversing a String