Remove a string in a string in C#

We can remove a substring in a string by specifying "After position" and "No of characters".

Syntax: Remove(After position,No of characters)


using System;
using System.IO;
using System.Text;

namespace forgetCode
{
    class program1
    {
        static void Main(string[] args)
        {
            string baseString = "Forget code";

            string newString = baseString.Remove(3,5);

            Console.WriteLine(newString);

        }
   
    }
}


Output:
Forode

..