RandomExtended..::..Pick<(Of <(<'T>)>)> Method (IList<(Of <(<'T>)>)>, Int32)

Pick and remove count items from the list.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public List<T> Pick<T>(
	IList<T> list,
	int count
)
Public Function Pick(Of T) ( _
	list As IList(Of T), _
	count As Integer _
) As List(Of T)

Type Parameters

T

Parameters

list
Type: IList<(Of <(<'T>)>)>
The list.
count
Type: Int32
The count.

Return Value

Exceptions


ExceptionCondition
[ArgumentNullException]list;list is null.
[ArgumentException]List cannot be read-only;list
[ArgumentOutOfRangeException] count;count must be greater than or equal to zero or count;count must be less than or equal to list.Count