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