StringExtensions Methods
Returns the length leftmost characters of the input string. If the input string is shorter than length, the whole string is returned.
public static string Left(
this string str,
int length
)
A string that consists of the length leftmost characters of the input string.
Returns the length rightmost characters of the input string. If the input string is shorter than length, the whole string is returned.
public static string Right(
this string str,
int length
)
A string that consists of the length rightmost characters of the input string.
Last modified 4yr ago