4 writes to stream
System.Private.Xml (4)
System\Xml\Core\XmlTextReaderImpl.cs (2)
2846_ps.stream = stream; 3068_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)
71stream = null;
22 references to stream
System.Private.Xml (22)
System\Xml\Core\XmlTextReaderImpl.cs (14)
2917Debug.Assert(_ps.charPos == 0 && _ps.charsUsed == 0 && _ps.stream == null); 2946Debug.Assert(_ps.stream == null && _ps.textReader == null); 3076if (_ps.stream == null) 3081Debug.Assert(_ps.stream != null); 3082InitStreamInput(_ps.baseUri, _ps.baseUriStr, _ps.stream, null); 3209Debug.Assert(_ps.stream != null); 3224if (_ps.stream == null) 3285Debug.Assert(_ps.stream != null && _ps.decoder != null && _ps.bytes != null); 3359if (_ps.stream != null) 3411if (_ps.stream != null) 3434if (_ps.stream != null) 3443int read = _ps.stream.Read(_ps.bytes, _ps.bytesUsed, _ps.bytes.Length - _ps.bytesUsed); 3488Debug.Assert(_ps.stream != null && _ps.decoder != null && _ps.bytes != null); 8053_ps.stream?.Dispose();
System\Xml\Core\XmlTextReaderImplAsync.cs (6)
944Debug.Assert(_ps.charPos == 0 && _ps.charsUsed == 0 && _ps.stream == null); 1003Debug.Assert(_ps.stream != null); 1048if (_ps.stream != null) 1099if (_ps.stream != null) 1120if (_ps.stream != null) 1127int read = await _ps.stream.ReadAsync(_ps.bytes.AsMemory(_ps.bytesUsed)).ConfigureAwait(false);
System\Xml\Core\XmlTextReaderImplHelpers.cs (2)
91if (stream != null) 93stream.Dispose();