Skip to content

JSCollectionExtensions.AsEnumerable<T> method (1 of 3)

Creates an enumerable adapter for a JS Array object, without copying.

C#
public static IEnumerable<T> AsEnumerable<T>(this JSArray array, To<T> fromJS)

Remarks

This method must be called from the JS thread. The returned enumerable object is thread-safe and may be accessed from threads other than the JS thread (though accessing from the JS thread is more efficient).

See Also


JSCollectionExtensions.AsEnumerable<T> method (2 of 3)

Creates an enumerable adapter for a JS iterable object, without copying.

C#
public static IEnumerable<T> AsEnumerable<T>(this JSIterable iterable, To<T> fromJS)

Remarks

This method must be called from the JS thread. The returned enumerable object is thread-safe and may be accessed from threads other than the JS thread (though accessing from the JS thread is more efficient).

See Also


JSCollectionExtensions.AsEnumerable<T> method (3 of 3)

Creates an enumerable adapter for a JS Set object, without copying.

C#
public static IEnumerable<T> AsEnumerable<T>(this JSSet set, To<T> fromJS)

Remarks

This method must be called from the JS thread. The returned enumerable object is thread-safe and may be accessed from threads other than the JS thread (though accessing from the JS thread is more efficient).

See Also

Released under the MIT license