PostSharp6.3/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: 6.3.11.0 (6.3.11.0)
Syntax
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.
See Also