7 internal sealed
class BindableIterableToEnumerableAdapter
9 private sealed
class NonGenericToGenericIterator : IIterator<object>
11 private IBindableIterator iterator;
13 public object Current => iterator.Current;
15 public bool HasCurrent => iterator.HasCurrent;
17 public NonGenericToGenericIterator(IBindableIterator iterator)
19 this.iterator = iterator;
22 public bool MoveNext()
24 return iterator.MoveNext();
27 public int GetMany(
object[] items)
33 private BindableIterableToEnumerableAdapter()
40 IBindableIterable bindableIterable = JitHelpers.UnsafeCast<IBindableIterable>(
this);
41 return new IteratorToEnumeratorAdapter<object>(
new NonGenericToGenericIterator(bindableIterable.First()));
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
Supports a simple iteration over a non-generic collection.