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
textstring- The text to process.
charsToRemoveReadOnlySpan<char>- The characters to remove.
Returns
- string
- The text with occurrences of the specified characters removed.
Exceptions
- ArgumentNullException
- Thrown when
textisnull.
