ListExtensions..::..Take<(Of <(<'TSource>)>)> Method

Takes the specified count.

Namespace:  MichaelBrandonMorris.Extensions.CollectionExtensions
Assembly:  MichaelBrandonMorris.Extensions.CollectionExtensions (in MichaelBrandonMorris.Extensions.CollectionExtensions.dll)

Syntax


public static IList<TSource> Take<TSource>(
	IList<TSource> source,
	int count
)
Public Shared Function Take(Of TSource) ( _
	source As IList(Of TSource), _
	count As Integer _
) As IList(Of TSource)
public:
generic<typename TSource>
static IList<TSource>^ Take(
	IList<TSource>^ source, 
	int^ count
)

Type Parameters

TSource
The type of the t source.

Parameters

source
Type: IList<(Of <(<'TSource>)>)>
The source.
count
Type: Int32
The count.

Return Value

IList<TSource>.