string class : TrimEnd() method
Description
Returns a string that removed whitespace characters at the end of the caller.
Syntax
stringInstance.TrimEnd()
Arguments
None
Return value
Class | Description |
string | A string that removed whitespace characters at the end. |
Sample code
//anyString is a instance of string type.
string trimmedString = anyString.TrimEnd();
Notes
It's a wrapper of the System.String.TrimEnd(Char[]).