|
WeightedCollectionT Constructor (Int32, IEqualityComparerT) |
Constructor with capacity and comparer defined.
Namespace: JLChnToZ.LuckyPlayer.WeightedRandomizerAssembly: LuckyPlayer (in LuckyPlayer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public WeightedCollection(
int capacity,
IEqualityComparer<T> comparer
)
Public Sub New (
capacity As Integer,
comparer As IEqualityComparer(Of T)
)
public:
WeightedCollection(
int capacity,
IEqualityComparer<T>^ comparer
)
new :
capacity : int *
comparer : IEqualityComparer<'T> -> WeightedCollection
Parameters
- capacity
- Type: SystemInt32
Initial capacity of the pool - comparer
- Type: System.Collections.GenericIEqualityComparerT
Custom equality comparer for checking between two Ts are equal.
See Also