MoreEnumerableExcludeT Method
Excludes a contiguous number of elements from a sequence starting
at a given index.
Namespace: MoreLinqAssembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
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>
- sequence IEnumerableT
- The sequence to exclude elements from
- startIndex Int32
- The zero-based index at which to begin excluding elements
- count Int32
- The number of elements to exclude
- T
- The type of the elements of the sequence
IEnumerableTA sequence that excludes the specified portion of elementsIn 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).