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
)
<ExtensionAttribute>
Public Shared Function Exclude(Of T) (
sequence As IEnumerable(Of T),
startIndex As Integer,
count As Integer
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ Exclude(
IEnumerable<T>^ sequence,
int startIndex,
int count
)
[<ExtensionAttribute>]
static member Exclude :
sequence : IEnumerable<'T> *
startIndex : int *
count : int -> IEnumerable<'T>
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:
IEnumerableTA 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