How to Replace a String in C#/CSharp

How to Replace a String in C#/CSharp

To replace a string in C#/CSharp, we make use Replace method.  Example is given below.

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •