[This is preliminary documentation and is subject to change.]

CTror from IDictionary<(Of <(<'TKey, TValue>)>)> with comparer.

Namespace: Tools.CollectionsT.GenericT
Assembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
public ReadOnlyDictionary(
	IDictionary<TKey, TValue> Dictionary,
	IEqualityComparer<TKey> Comparer
)
Visual Basic
Public Sub New ( _
	Dictionary As IDictionary(Of TKey, TValue), _
	Comparer As IEqualityComparer(Of TKey) _
)
Visual C++
public:
ReadOnlyDictionary(
	IDictionary<TKey, TValue>^ Dictionary, 
	IEqualityComparer<TKey>^ Comparer
)
F#
new : 
        Dictionary:IDictionary<'TKey, 'TValue> * 
        Comparer:IEqualityComparer<'TKey> -> ReadOnlyDictionary
JScript
public function ReadOnlyDictionary(
	Dictionary : IDictionary<TKey, TValue>, 
	Comparer : IEqualityComparer<TKey>
)

Parameters

Dictionary
Type: System.Collections.Generic..::..IDictionary<(Of <(<'TKey, TValue>)>)>
IDictionary<(Of <(<'TKey, TValue>)>)> to be copied
Comparer
Type: System.Collections.Generic..::..IEqualityComparer<(Of <(<'TKey>)>)>
The IEqualityComparer<(Of <(<'T>)>)> implementation to use when comparing keys, or null to use the default EqualityComparer<(Of <(<'T>)>)> for the type of the key.

Remarks

This ctor always creates copy of Dictionary values

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionDictionary is null

See Also