TrimAll Method
Definition
- Namespace
- Cuemon.Extensions
- Assemblies
- Cuemon.Extensions.Core.dll
TrimAll(string)
Removes all occurrences of white-space characters from the specified value.
public static string TrimAll(this string value)
Parameters
Returns
- string
The string that remains after all occurrences of white-space characters are removed from the specified
value.
Exceptions
- ArgumentNullException
valueis null.
TrimAll(string, params char[])
Removes all occurrences of a set of characters specified in trimChars from the specified value.
public static string TrimAll(this string value, params char[] trimChars)
Parameters
valuestringThe string to extend.
trimCharschar[]An array of Unicode characters to remove. Default value is WhiteSpace.
Returns
- string
The string that remains after all occurrences of the characters in the
trimCharsparameter are removed from the specifiedvalue.
Exceptions
- ArgumentNullException
valueis null.