StringExtensions Methods
Left
Returns the length leftmost characters of the input string. If the input string is shorter than length, the whole string is returned.
Syntax:
Parameters:
Parameter
Description
str
The input string on which the extension is called.
length
How many characters shall be returned.
Return Value:
A string that consists of the length leftmost characters of the input string.
Right
Returns the length rightmost characters of the input string. If the input string is shorter than length, the whole string is returned.
Syntax:
Parameters:
Parameter
Description
str
The input string on which the extension is called.
length
How many characters shall be returned.
Return Value:
A string that consists of the length rightmost characters of the input string.
Last updated
Was this helpful?