3 writes to _stream
System.Private.Xml (3)
System\Xml\Core\XmlEncodedRawTextWriter.cs (2)
138this._stream = stream; 736_stream = null;
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (1)
103_stream = null!;
23 references to _stream
System.Private.Xml (23)
System\Xml\Core\XmlEncodedRawTextWriter.cs (12)
172this._stream.Write(bom); 719if (_stream != null) 723_stream.Flush(); 731_stream.Dispose(); 770if (_stream != null) 772_stream.Flush(); 791Debug.Assert(_stream != null || _writer != null); 793if (_stream != null) 862_stream!.Write(_bufBytes, 0, _bufBytesUsed); 868_stream!.Write(_bufBytes!, 0, _bufBytesUsed); 876if (_stream != null) 883_stream.Write(_bufBytes, 0, bEnc);
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (11)
86if (_stream != null) 90await _stream.FlushAsync().ConfigureAwait(false); 98await _stream.DisposeAsync().ConfigureAwait(false); 602if (_stream != null) 604await _stream.FlushAsync().ConfigureAwait(false); 623Debug.Assert(_stream != null || _writer != null); 625if (_stream != null) 694await _stream!.WriteAsync(_bufBytes.AsMemory(0, _bufBytesUsed)).ConfigureAwait(false); 700await _stream!.WriteAsync(_bufBytes.AsMemory(0, _bufBytesUsed)).ConfigureAwait(false); 708if (_stream != null) 715return _stream.WriteAsync(_bufBytes, 0, bEnc);