IEnumerableExtensionsSubSequenceT Method |
Take the items from a sequence starting with item # start (index 0) and contining for count items.
Namespace: Bio.UtilAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public static IEnumerable<T> SubSequence<T>(
this IEnumerable<T> sequence,
int start,
int count
)
<ExtensionAttribute>
Public Shared Function SubSequence(Of T) (
sequence As IEnumerable(Of T),
start As Integer,
count As Integer
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ SubSequence(
IEnumerable<T>^ sequence,
int start,
int count
)
[<ExtensionAttribute>]
static member SubSequence :
sequence : IEnumerable<'T> *
start : int *
count : int -> IEnumerable<'T>
Parameters
- sequence
- Type: System.Collections.GenericIEnumerableT
The input sequence - start
- Type: SystemInt32
The index of the first item to take - count
- Type: SystemInt32
The number of items to take
Type Parameters
- T
- The type of the items
Return Value
Type:
IEnumerableTThe count items starting with the one with index start.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also