StringSegment.LastIndexOf method (1 of 2)

Returns the last index of the specified character in the string segment.

public int LastIndexOf(char value)
parameter description
value The character to find.

Return Value

The last index of the specified character in the string segment, or -1 if the character cannot be found.

See Also


StringSegment.LastIndexOf method (2 of 2)

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.

Return Value

The last index of the specified string in the string segment, or -1 if the string cannot be found.

See Also