Remove a string in a string in C#

Remove a string in a string in C#


using System;

public class Program
{
    public static void Main()
    {
        Console.WriteLine("Remove a string in a string in C#\n");
        string baseString = "Remove a string";
        string newString = baseString.Remove(3, 5);
        Console.WriteLine(newString);
    }
}
DEMO
Remove a string in a string in C# Remove a string in a string in C# Reviewed by Bhaumik Patel on 7:49 PM Rating: 5