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