PostSharp4.3//API Reference/Post­Sharp.​Patterns.​Collections Namespace/Advisable­Dictionary(TKey, TValue) Class/Advisable­Dictionary(TKey, TValue) Constructor/Advisable­Dictionary(TKey, TValue) Constructor (IDictionary(TKey, TValue), IEquality­Comparer(TKey))
AdvisableDictionary<TKey, TValue> Constructor (IDictionary<TKey, TValue>, IEqualityComparer<TKey>)
Initializes a new instance of the AdvisableDictionary<TKey, TValue> class that contains elements copied from the specified IDictionary<TKey, TValue> and uses the specified IEqualityComparer<T>.

Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public AdvisableDictionary(
	IDictionary<TKey, TValue> dictionary,
	IEqualityComparer<TKey> comparer
)

Parameters

dictionary
Type: System.Collections.Generic.IDictionary<TKey, TValue>
The IDictionary<TKey, TValue> whose elements are copied to the new AdvisableDictionary<TKey, TValue>.
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