Tests whether this sequence contains 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: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public bool ContainsSlice(
IEnumerable<T> slice
)
public bool ContainsSlice(
IEnumerable<T> slice
)
Public Function ContainsSlice (
slice As IEnumerable(Of T)
) As Boolean
Public Function ContainsSlice (
slice As IEnumerable(Of T)
) As Boolean
public:
virtual bool ContainsSlice(
IEnumerable<T>^ slice
) sealed
public:
virtual bool ContainsSlice(
IEnumerable<T>^ slice
) sealed
abstract ContainsSlice :
slice : IEnumerable<'T> -> bool
override ContainsSlice :
slice : IEnumerable<'T> -> bool
abstract ContainsSlice :
slice : IEnumerable<'T> -> bool
override ContainsSlice :
slice : IEnumerable<'T> -> bool
Parameters
- slice
- Type: System.Collections.Generic IEnumerable T
The sequence to search for.
Return Value
Type:
BooleanTrue if this sequence contains a slice with the same elements as
slice; otherwise, False.
Implements
ISequence T ContainsSlice(IEnumerable T )See Also