Click or drag to resize

StringExtensionsReplaceCI Method

Replace all instances of a specified System.String in this instance, with another specified System.String using the OrdingalIgnoreCase comparison type.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string ReplaceCI(
	this string s,
	string oldValue,
	string newValue
)

Parameters

s
Type: SystemString
The string upon which to operate.
oldValue
Type: SystemString
A System.String to be replaced.
newValue
Type: SystemString
A System.String to replace all occurances of oldValue.

Return Value

Type: String
The string with all occurances of oldValue replaced with newValue.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also