4 writes to stream
System.Private.Xml (4)
System\Xml\Core\XmlTextReaderImpl.cs (2)
2847
_ps.
stream
= stream;
3069
_ps.
stream
= (Stream?)tmpResolver.GetEntity(_ps.baseUri, null, typeof(Stream));
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
872
_ps.
stream
= stream;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
72
stream
= null;
22 references to stream
System.Private.Xml (22)
System\Xml\Core\XmlTextReaderImpl.cs (14)
2918
Debug.Assert(_ps.charPos == 0 && _ps.charsUsed == 0 && _ps.
stream
== null);
2947
Debug.Assert(_ps.
stream
== null && _ps.textReader == null);
3077
if (_ps.
stream
== null)
3082
Debug.Assert(_ps.
stream
!= null);
3083
InitStreamInput(_ps.baseUri, _ps.baseUriStr, _ps.
stream
, null);
3210
Debug.Assert(_ps.
stream
!= null);
3225
if (_ps.
stream
== null)
3286
Debug.Assert(_ps.
stream
!= null && _ps.decoder != null && _ps.bytes != null);
3392
if (_ps.
stream
!= null)
3459
if (_ps.
stream
!= null)
3482
if (_ps.
stream
!= null)
3491
int read = _ps.
stream
.Read(_ps.bytes, _ps.bytesUsed, _ps.bytes.Length - _ps.bytesUsed);
3536
Debug.Assert(_ps.
stream
!= null && _ps.decoder != null && _ps.bytes != null);
8095
_ps.
stream
?.Dispose();
System\Xml\Core\XmlTextReaderImplAsync.cs (6)
944
Debug.Assert(_ps.charPos == 0 && _ps.charsUsed == 0 && _ps.
stream
== null);
1003
Debug.Assert(_ps.
stream
!= null);
1063
if (_ps.
stream
!= null)
1129
if (_ps.
stream
!= null)
1150
if (_ps.
stream
!= null)
1157
int read = await _ps.
stream
.ReadAsync(_ps.bytes.AsMemory(_ps.bytesUsed)).ConfigureAwait(false);
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
92
if (
stream
!= null)
94
stream
.Dispose();