PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Keyed­Collection(TKey, TItem) Class / Advisable­Keyed­Collection(TKey, TItem) Constructor / Advisable­Keyed­Collection(TKey, TItem) Constructor (Int32, IEquality­Comparer(TKey))

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: 2023.0.3.0 (2023.0.3.0)
protected AdvisableKeyedCollection(
	int capacity,
	IEqualityComparer<TKey> comparer


Type: System.Int32
The number of elements the collection can contain before it must be resized.
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.
See Also