xFactorSchool.com(Beta)
How to Do Examples
Python Examples
HTML Examples
Code Examples
C Code Examples
C++ Code Examples
C# Code Examples
Java Code Examples
Python Code Examples
HTML Code Examples
CSS Code Examples
JavaScript Code Examples
Online Editor
C Code Editor
C++ Code Editor
C# Code Editor
Java Code Editor
Python Code Editor
HTML Code Editor
CSS Code Editor
JavaScript Code Editor
Practice how to replace a substring of a string with specified string in C#
C# Online Editor
Execute Code
More C# Sample Code
using System; namespace ExampleApp { class Program { static void Main() { string strVariable = "C# is a normal programming language."; //Replace syntax .Replace(oldValue, newValue) string newString = strVariable.Replace("normal", "great"); // first argument (normal) is old value and second argument (great) is new value Console.WriteLine(newString); //Output: C# is a great programming language. } } }