Sequence T  IndexOfSlice Method (IEnumerable T )A Sandcastle Documented Class Library
Finds the index of the first occurrence of a given sequence as a slice. If this sequence represents an infinite set or series and doesn't contain slice, this will never return!

Namespace: Sequences
Assembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax
public int IndexOfSlice(
	IEnumerable<T> slice
)

Parameters

slice
Type: System.Collections.Generic IEnumerable T 
The sequence to search for.

Return Value

Type: Int32
The index of the first occurrence of slice if any is found; otherwise, -1.

Implements

ISequence T  IndexOfSlice(IEnumerable T )
See Also