AtalaObservableDictionaryTKey, TValue Constructor (IDictionaryTKey, TValue, IEqualityComparerTKey) |
Initializes a new instance of the
AtalaObservableDictionaryTKey, TValue class that contains elements copied from the specified
IDictionaryTKey, TValue and uses the specified
IEqualityComparerT.
Namespace:
Atalasoft.Imaging.Wpf
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public AtalaObservableDictionary(
IDictionary<TKey, TValue> dictionary,
IEqualityComparer<TKey> comparer
)
Public Sub New (
dictionary As IDictionary(Of TKey, TValue),
comparer As IEqualityComparer(Of TKey)
)
Parameters
- dictionary
- Type: System.Collections.GenericIDictionaryTKey, TValue
The IDictionaryTKey, TValue whose elements are copied to the AtalaObservableDictionaryTKey, TValue. - comparer
- Type: System.Collections.GenericIEqualityComparerTKey
The IEqualityComparerT implementation to use when comparing keys, or null to use the default IEqualityComparerT for the type of the key.
Exceptions Exception | Condition |
---|
ArgumentNullException | dictionary is null. |
ArgumentException | dictionary contains one or more duplicate keys. |
See Also