String.LastIndexOf Method (Char)
Reports the index number, or character position, of the last occurrence of a specified Unicode character in the current String object.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute]
public int LastIndexOf (
charvalue
)
Parameters
- value
The Unicode character you want to find.
Return Value
The character position of the value parameter if the specified character is found, or -1 if it is not found.
Remarks
Index numbering starts at 0 (zero).
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.