ReplaceAll Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
ReplaceAll(string, string, string, StringComparison)
Replaces all occurrences of oldValue in value, with newValue.
public static string ReplaceAll(this string value, string oldValue, string newValue, StringComparison comparison = StringComparison.OrdinalIgnoreCase)
Parameters
valuestringThe string to extend.
oldValuestringThe string value to be replaced.
newValuestringThe string value to replace all occurrences of
oldValue.comparisonStringComparisonOne of the enumeration values that specifies the rules to use in the comparison. Default is OrdinalIgnoreCase.