Table of Contents

RemoveAll Method

Definition

Namespace
Cuemon
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/StringReplacePair.cs

RemoveAll(string, params string[])

Returns a new string in which all the specified fragments has been removed from the specified value.

public static string RemoveAll(string value, params string[] fragments)

Parameters

value string

The string value to perform the sweep on.

fragments string[]

The fragments containing the characters and/or words to delete.

Returns

string

A new string that is equivalent to value except for the removed characters and/or words.

Remarks

This method performs an ordinal (case-sensitive and culture-insensitive) comparison. The search begins at the first character position of this string and continues through the last character position.

RemoveAll(string, StringComparison, params string[])

Returns a new string in which all the specified fragments has been deleted from the specified value.

public static string RemoveAll(string value, StringComparison comparison, params string[] fragments)

Parameters

value string

The string value to perform the sweep on.

comparison StringComparison

One of the enumeration values that specifies the rules to use in the comparison.

fragments string[]

The fragments containing the characters and/or words to delete.

Returns

string

A new string that is equivalent to value except for the removed characters and/or words.

RemoveAll(string, params char[])

Returns a new string in which all the specified fragments has been deleted from the specified value.

public static string RemoveAll(string value, params char[] fragments)

Parameters

value string

The string value to perform the sweep on.

fragments char[]

The fragments containing the characters and/or words to delete.

Returns

string

A new string that is equivalent to value except for the removed characters.

RemoveAll(string[], params string[])

Returns a new string array in which all the specified fragments has been deleted from the specified source array.

public static string[] RemoveAll(string[] source, params string[] fragments)

Parameters

source string[]

The string array value to perform the sweep on.

fragments string[]

The fragments containing the characters and/or words to delete.

Returns

string[]

A new string array that is equivalent to source except for the removed characters and/or words.

Remarks

This method performs an ordinal (case-sensitive and culture-insensitive) comparison. The search begins at the first character position of this string and continues through the last character position.

RemoveAll(string[], StringComparison, params string[])

Returns a new string array in which all the specified fragments has been deleted from the specified source array.

public static string[] RemoveAll(string[] source, StringComparison comparison, params string[] fragments)

Parameters

source string[]

The string array value to perform the sweep on.

comparison StringComparison

One of the enumeration values that specifies the rules to use in the comparison.

fragments string[]

The fragments containing the characters and/or words to delete.

Returns

string[]

A new string array that is equivalent to source except for the removed characters and/or words.