AdvisableDictionary<TKey, TValue> Constructor (IDictionary<TKey, TValue>, IEqualityComparer<TKey>) |
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
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.