2using System.Collections;
6 internal partial class NativeCoroutine : IEnumerable
8 private Func<object, object> _callback;
10 public NativeCoroutine(Func<object, object> callback)
15 public IEnumerator GetEnumerator()
19 object sentinel = this._callback;
20 object next = this._callback(sentinel);
21 while (next != sentinel)
24 next = this._callback(sentinel);