StringManipulation.RemoveMany Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Removes multiple characters from the given text.
public static string RemoveMany(this string text, ReadOnlySpan<char> charsToRemove)

Parameters

text string
The text to process.
charsToRemove ReadOnlySpan<char>
The characters to remove.

Returns

string
The text with occurrences of the specified characters removed.

Exceptions

ArgumentNullException
Thrown when text is null.