How to replace a substring in C Sharp/C# ? By Malik | July 12, 2011 0 Comment Hi, For replacing a substring in C Sharp/C#, use the following lines of code.