Over a million developers have joined DZone.

Replace() Method Of String Type

·
Replace method of string type


        string sentence = "This is Dzone >> Snippet";
	Console.WriteLine(sentence);
	Console.WriteLine(sentence.Replace("Snippet", "New Links"));
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}