Click or drag to resize

StringUtilsReplaceStringInstance Method

String replace function that support

Namespace:  Koden.Utils
Assembly:  Koden.Utils (in Koden.Utils.dll) Version: 1.1.6453.26060
Syntax
public static string ReplaceStringInstance(
	string origString,
	string findString,
	string replaceWith,
	int instance,
	bool caseInsensitive
)

Parameters

origString
Type: SystemString
Original input string
findString
Type: SystemString
The string that is to be replaced
replaceWith
Type: SystemString
The replacement string
instance
Type: SystemInt32
Instance of the FindString that is to be found. if Instance = -1 all are replaced
caseInsensitive
Type: SystemBoolean
Case insensitivity flag

Return Value

Type: String
updated string or original string if no matches
See Also