StringManipulation.RemoveChars Method

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

Definition

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

Parameters

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

Returns

string
A new string with the specified characters removed.

Exceptions

ArgumentNullException
Thrown when text is null.