Pick and remove count items from the list.
Namespace:
Tortuga.Anchor
Assembly:
Tortuga.Anchor (in Tortuga.Anchor.dll)
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
Exception | Condition |
---|
[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
|