C# Replace String function replaces the specified string pattern or character with new string or character from the string value. It replaces all the occurrences of specified old pattern from the string with new one without any case sensitive issue.
Try the following sample to understand the C# Replace function: