Table of Contents

Method ToReadOnlyDictionary

Namespace
DotNetBrowser.Js.Collections
Assembly
DotNetBrowser.dll

ToReadOnlyDictionary<TKey, TVal>()

Copies the contents of the IJsMap to a new IReadOnlyDictionary<TKey, TValue>.

IReadOnlyDictionary<TKey, TVal> ToReadOnlyDictionary<TKey, TVal>()

Returns

IReadOnlyDictionary<TKey, TVal>

A IReadOnlyDictionary<TKey, TValue> that contains key-value pairs from the IJsMap.

Type Parameters

TKey
TVal

Remarks

Proxy objects are mapped to the corresponding injected .NET objects.

Exceptions

ObjectDisposedException

The IJsMap has already been disposed.

ArgumentException

The elements in this IJsMap cannot be converted to the specified type.

ToReadOnlyDictionary()

Copies the contents of the IJsMap to a new IReadOnlyDictionary<TKey, TValue>.

IReadOnlyDictionary<object, object> ToReadOnlyDictionary()

Returns

IReadOnlyDictionary<object, object>

A IReadOnlyDictionary<TKey, TValue> that contains key-value pairs from the IJsMap.

Remarks

Proxy objects are mapped to the corresponding injected .NET objects.

Exceptions

ObjectDisposedException

The IJsMap has already been disposed.