Table of Contents

Method ToReadOnlyCollection

Namespace
DotNetBrowser.Js.Collections
Assembly
DotNetBrowser.dll

ToReadOnlyCollection<T>()

Copies the contents of the IJsSet to a new IReadOnlyCollection<T>.

IReadOnlyCollection<T> ToReadOnlyCollection<T>()

Returns

IReadOnlyCollection<T>

A IReadOnlyCollection<T> that contains values from the IJsSet.

Type Parameters

T

Remarks

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

Exceptions

ObjectDisposedException

The IJsSet has already been disposed.

ArgumentException

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

ToReadOnlyCollection()

Copies the contents of the IJsSet to a new IReadOnlyCollection<T>.

IReadOnlyCollection<object> ToReadOnlyCollection()

Returns

IReadOnlyCollection<object>

A IReadOnlyCollection<T> that contains values from the IJsSet.

Remarks

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

Exceptions

ObjectDisposedException

The IJsSet has already been disposed.

ArgumentException

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