|
WeightedCollectionT Constructor (Int32, IEnumerableT) |
Constructor which will initialize the pool with an array of T with enough capacity.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public WeightedCollection(
int capacity,
IEnumerable<T> source
)
Public Sub New (
capacity As Integer,
source As IEnumerable(Of T)
)
public:
WeightedCollection(
int capacity,
IEnumerable<T>^ source
)
new :
capacity : int *
source : IEnumerable<'T> -> WeightedCollection
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