Extension method for String that allows a case-insensitive Replace.

public static string Replace(string originalString,
	string oldValue,
	string newValue,
	StringComparison comparison)

Return Value

A string with oldValue replaced with newValue.


originalString The original string.

oldValue The value to replace.

newValue The value to replace it with.

comparison The type of comparison to do.


Taken from

See also:

Class StringFunctions

© Stonefield Software Inc., 2019 • Updated: 02/12/16
Comment or report problem with topic