Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Collections Namespace / Advisable­Dictionary(TKey, TValue) Class / Advisable­Dictionary(TKey, TValue) Constructor / Advisable­Dictionary(TKey, TValue) Constructor (IEquality­Comparer(TKey))

AdvisableDictionary<TKey, TValue> Constructor (IEqualityComparer<TKey>)

Initializes a new instance of the AdvisableDictionary<TKey, TValue> that is empty, has the default initial capacity, and uses the specified equality comparer for the key type.

Namespace:  PostSharp.Patterns.Collections
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 5.0.48.0 (5.0.48.0)
Syntax
C#
public AdvisableDictionary(
	IEqualityComparer<TKey> comparer
)

Parameters

comparer
Type: System.Collections.Generic.IEqualityComparer<TKey>
The IEqualityComparer<T> implementation to use when comparing keys, or null to use the default EqualityComparer<T> for the type of the key.
See Also