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