2 writes to AsyncEnumerator
System.Text.Json (2)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (2)
58state.Current.AsyncEnumerator = enumerator; 119state.Current.AsyncEnumerator = null;
12 references to AsyncEnumerator
System.Text.Json (12)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (5)
77Debug.Assert(state.Current.AsyncEnumerator is IAsyncEnumerator<TElement>); 78enumerator = (IAsyncEnumerator<TElement>)state.Current.AsyncEnumerator; 89Debug.Assert(state.Current.AsyncEnumerator is null); 97Debug.Assert(state.Current.AsyncEnumerator is IAsyncEnumerator<TElement>); 98enumerator = (IAsyncEnumerator<TElement>)state.Current.AsyncEnumerator;
System\Text\Json\Serialization\WriteStack.cs (7)
282Debug.Assert(Current.AsyncEnumerator is null); 291Debug.Assert(_stack[i].AsyncEnumerator is null); 333exception = await DisposeFrame(Current.CollectionEnumerator, Current.AsyncEnumerator, exception).ConfigureAwait(false); 346Debug.Assert(_stack[i].AsyncEnumerator is null || ReferenceEquals(Current.AsyncEnumerator, _stack[i].AsyncEnumerator)); 350exception = await DisposeFrame(_stack[i].CollectionEnumerator, _stack[i].AsyncEnumerator, exception).ConfigureAwait(false);