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