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

Pick and remove one item from the list.

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

Syntax


public T Pick<T>(
	IList<T> list
)
Public Function Pick(Of T) ( _
	list As IList(Of T) _
) As T

Type Parameters

T

Parameters

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

Return Value

Exceptions


ExceptionCondition
[ArgumentNullException]list;list is null.
[ArgumentException]List cannot be read-only;list