Click or drag to resize
WeightedCollectionT Constructor (Int32, IEnumerableT)
Constructor which will initialize the pool with an array of T with enough capacity.

Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizer
Assembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public WeightedCollection(
	int capacity,
	IEnumerable<T> source
)

Parameters

capacity
Type: SystemInt32
Initial capacity of the pool
source
Type: System.Collections.GenericIEnumerableT
Array of objects which will initially put into the pool.
See Also