Finds the index of the last occurrence of some value in this sequence, before or at some end index and within the range specified by count.
If this sequence represents an infinite set or series, this will never return!
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntaxpublic int LastIndexOf(
T elem,
int end,
int count
)
public int LastIndexOf(
T elem,
int end,
int count
)
Public Function LastIndexOf (
elem As T,
end As Integer,
count As Integer
) As Integer
Public Function LastIndexOf (
elem As T,
end As Integer,
count As Integer
) As Integer
public:
virtual int LastIndexOf(
T elem,
int end,
int count
) sealed
public:
virtual int LastIndexOf(
T elem,
int end,
int count
) sealed
abstract LastIndexOf :
elem : 'T *
end : int *
count : int -> int
override LastIndexOf :
elem : 'T *
end : int *
count : int -> int
abstract LastIndexOf :
elem : 'T *
end : int *
count : int -> int
override LastIndexOf :
elem : 'T *
end : int *
count : int -> int
Parameters
- elem
- Type: T
The value to search for.
- end
- Type: System Int32
The end index.
- count
- Type: System Int32
The number of elements in the section to search.
Return Value
Type:
Int32The index of the last occurrence of
elem if any is found; otherwise, -1.
Implements
ISequence T LastIndexOf(T, Int32, Int32)
See Also