2 writes to AsyncDisposable
System.Text.Json (2)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (2)
58
state.Current.
AsyncDisposable
= enumerator;
105
state.Current.
AsyncDisposable
= null;
7 references to AsyncDisposable
System.Text.Json (7)
System\Text\Json\Serialization\Converters\Collection\IAsyncEnumerableOfTConverter.cs (3)
52
if (state.Current.
AsyncDisposable
is null)
76
Debug.Assert(state.Current.
AsyncDisposable
is IAsyncEnumerator<TElement>);
77
enumerator = (IAsyncEnumerator<TElement>)state.Current.
AsyncDisposable
;
System\Text\Json\Serialization\WriteStack.cs (4)
314
Debug.Assert(Current.
AsyncDisposable
is null);
320
Debug.Assert(_stack[i].
AsyncDisposable
is null);
353
exception = await DisposeFrame(Current.CollectionEnumerator, Current.
AsyncDisposable
, exception).ConfigureAwait(false);
358
exception = await DisposeFrame(_stack[i].CollectionEnumerator, _stack[i].
AsyncDisposable
, exception).ConfigureAwait(false);