Initializes a new instance of the Dictionary class with the specified key comparer.
Namespace: System.Extensions.Collections.ObjectModelAssembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)
Syntax
C# |
---|
protected Dictionary( IEqualityComparer<TKey> comparer ) |
Visual Basic |
---|
Protected Sub New ( comparer As IEqualityComparer(Of TKey) ) |
Visual C++ |
---|
protected: Dictionary( IEqualityComparer<TKey>^ comparer ) |
F# |
---|
new : comparer : IEqualityComparer<'TKey> -> Dictionary |
Parameters
- comparer
- Type: System.Collections.Generic..::..IEqualityComparer<(Of <(<'TKey>)>)>
The comparer to use when testing for equality on keys.