Click or drag to resize

MoreEnumerableExcludeT Method

Excludes count elements from a sequence starting at a given index

Namespace:  MoreLinq
Assembly:  MoreLinq (in MoreLinq.dll) Version: 2.4.0
Syntax
public static IEnumerable<T> Exclude<T>(
	this IEnumerable<T> sequence,
	int startIndex,
	int count
)

Parameters

sequence
Type: System.Collections.GenericIEnumerableT
The sequence to exclude elements from
startIndex
Type: SystemInt32
The zero-based index at which to begin excluding elements
count
Type: SystemInt32
The number of elements to exclude

Type Parameters

T
The type of the elements of the sequence

Return Value

Type: IEnumerableT
A sequence that excludes the specified portion of elements

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