Returns the last index of the specified character in the string segment.
public int LastIndexOf(char value)
parameter | description |
---|---|
value | The character to find. |
The last index of the specified character in the string segment, or -1 if the character cannot be found.
Returns the last index of the specified string in the string segment.
public int LastIndexOf(string value, StringComparison comparison)
parameter | description |
---|---|
value | The string to find. |
comparison | The string comparison options. |
The last index of the specified string in the string segment, or -1 if the string cannot be found.