AdvisableKeyedCollection<TKey, TItem> Constructor (Int32, IEqualityComparer<TKey>) |
Initializes a new instance of the AdvisableKeyedCollection<TKey, TItem> class that has a specified initial capacity and a given equality comparer and uses the specified equality comparer.
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.55.0 (5.0.55.0)

C#
protected AdvisableKeyedCollection( int capacity, IEqualityComparer<TKey> comparer )
Parameters
- capacity
- Type: System.Int32
The number of elements the collection can contain before it must be resized. - comparer
- Type: System.Collections.Generic.IEqualityComparer<TKey>
The implementation of the IEqualityComparer<T> generic interface to use when comparing keys, or null to use the default equality comparer for the type of the key.
