Replace string using String.Replace() function

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 734
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Net.NetworkInformation;
namespace Test1
{
class Program
{
static void Main(string[] args)
{
string MainString = "Sourav Kayal";
string NetString = MainString.Replace("Sourav", "Bapi");
Console.WriteLine("New name is : " +NetString);
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response