Skip to content

M_CSharpx_EnumerableExtensions_Exclude__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

EnumerableExtensions.Exclude(T) Method

Excludes count elements from a sequence starting at a given index

Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static IEnumerable<T> Exclude<T>(
	this IEnumerable<T> sequence,
	int startIndex,
	int count
)

VB

<ExtensionAttribute>
Public Shared Function Exclude(Of T) ( 
	sequence As IEnumerable(Of T),
	startIndex As Integer,
	count As Integer
) As IEnumerable(Of T)

C++

public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ Exclude(
	IEnumerable<T>^ sequence, 
	int startIndex, 
	int count
)

F#

[<ExtensionAttribute>]
static member Exclude : 
        sequence : IEnumerable<'T> * 
        startIndex : int * 
        count : int -> IEnumerable<'T> 

Parameters

 

sequence
Type: System.Collections.Generic.IEnumerable(T)
startIndex
Type: System.Int32
count
Type: System.Int32

Type Parameters

 

T
The type of the elements of the sequence

Return Value

Type: IEnumerable(T)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable(T). 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

Reference

EnumerableExtensions Class
CSharpx Namespace

Clone this wiki locally