[This is preliminary documentation and is subject to change.]
CTor from IDictionary<(Of <(<'TKey, TValue>)>)> with choice to wrap or copy it
Namespace: Tools.CollectionsT.GenericTAssembly: Tools (in Tools.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public ReadOnlyDictionary( IDictionary<TKey, TValue> Dictionary, bool Wrap ) |
| Visual Basic |
|---|
Public Sub New ( _ Dictionary As IDictionary(Of TKey, TValue), _ Wrap As Boolean _ ) |
| Visual C++ |
|---|
public: ReadOnlyDictionary( IDictionary<TKey, TValue>^ Dictionary, bool Wrap ) |
| F# |
|---|
new : Dictionary:IDictionary<'TKey, 'TValue> * Wrap:bool -> ReadOnlyDictionary |
| JScript |
|---|
public function ReadOnlyDictionary( Dictionary : IDictionary<TKey, TValue>, Wrap : boolean ) |
Parameters
- Dictionary
- Type: System.Collections.Generic..::..IDictionary<(Of <(<'TKey, TValue>)>)>
IDictionary<(Of <(<'TKey, TValue>)>)> to be wrapped or copyed
- Wrap
- Type: System..::..Boolean
True to wrap Dictionary, false to create copy of Dictionary. Default is false.
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Dictionary is null |