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