6 writes to _encoding
System.Private.CoreLib (6)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (6)
184_encoding = encoding ??= Encoding.UTF8; 510_encoding = Encoding.BigEndianUnicode; 519_encoding = Encoding.Unicode; 525_encoding = Encoding.UTF32; 533_encoding = Encoding.UTF8; 540_encoding = new UTF32Encoding(bigEndian: true, byteOrderMark: true);
10 references to _encoding
System.Private.CoreLib (10)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (10)
299public virtual Encoding CurrentEncoding => _encoding; 319if (_encoding != null) 321_decoder = _encoding.GetDecoder(); 553_decoder = _encoding.GetDecoder(); 554int newMaxCharsPerBuffer = _encoding.GetMaxCharCount(byteBuffer.Length); 579ReadOnlySpan<byte> preamble = _encoding.Preamble; 626Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 730Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1176Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?"); 1392Debug.Assert(_bytePos <= _encoding.Preamble.Length, "possible bug in _compressPreamble. Are two threads using this StreamReader at the same time?");