Replace a string in a string in C#

Replace a string in a string in C#

using System;

public class Program
{
    public static void Main()
    {
        Console.WriteLine("Replace a string in a string in C#\n");
        string baseString = "Replace a string in a string in C#";
        string newString = baseString.Replace("string", "number");
        Console.WriteLine(newString);
    }
}
DEMO
Replace a string in a string in C# Replace a string in a string in C# Reviewed by Bhaumik Patel on 8:14 AM Rating: 5