Finds the index of the first occurrence of some value in this sequence, after or at some start index and within the range specified by count.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public int IndexOf(
T elem,
int from,
int count
)
public int IndexOf(
T elem,
int from,
int count
)
Public Function IndexOf (
elem As T,
from As Integer,
count As Integer
) As Integer
Public Function IndexOf (
elem As T,
from As Integer,
count As Integer
) As Integer
public:
virtual int IndexOf(
T elem,
int from,
int count
) sealed
public:
virtual int IndexOf(
T elem,
int from,
int count
) sealed
abstract IndexOf :
elem : 'T *
from : int *
count : int -> int
override IndexOf :
elem : 'T *
from : int *
count : int -> int
abstract IndexOf :
elem : 'T *
from : int *
count : int -> int
override IndexOf :
elem : 'T *
from : int *
count : int -> int
Parameters
- elem
- Type: T
The value to search for.
- from
- Type: System Int32
The start index.
- count
- Type: System Int32
The number of elements in the section to search.
Return Value
Type:
Int32The index of the first occurrence of
elem if any is found; otherwise, -1.
Implements
ISequence T IndexOf(T, Int32, Int32)See Also