6 writes to encoding
System.Xml (6)
System\Xml\Core\XmlTextReaderImpl.cs (4)
2703ps.encoding = Encoding.Unicode; 2726ps.encoding = originalEncoding; 2942ps.encoding = Encoding.UTF8; 2946ps.encoding = encoding;
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
928ps.encoding = Encoding.Unicode;
System\Xml\Core\XmlTextReaderImplHelpers.cs (1)
82encoding = null;
50 references to encoding
System.Xml (50)
System\Xml\Core\XmlTextReaderImpl.cs (33)
508reportedEncoding = ps.encoding; 523reportedEncoding = ps.encoding; 548reportedEncoding = ps.encoding; 569reportedEncoding = ps.encoding; 693reportedEncoding = ps.encoding; 761reportedEncoding = ps.encoding; 807reportedEncoding = ps.encoding; 826reportedEncoding = ps.encoding; 1182reportedEncoding = ps.encoding; 1185reportedEncoding = ps.encoding; 1223reportedEncoding = ps.encoding; 1231reportedEncoding = ps.encoding; 2657byte[] preamble = ps.encoding.GetPreamble(); 2842reportedEncoding = ps.encoding; 2948switch ( ps.encoding.WebName ) { // Encoding.Codepage is not supported in Silverlight 2967if ( ( newEncoding.WebName != ps.encoding.WebName || ps.decoder is SafeAsciiDecoder ) && !afterResetState) { 2982return ps.encoding; 2989if ( ps.encoding.WebName != "utf-16BE" && 2990ps.encoding.WebName != "utf-16" && 3003return ps.encoding; 3027if ( afterResetState && ps.encoding.WebName != newEncoding.WebName ) { 3060ps.bytePos += ps.encoding.GetByteCount( ps.chars, 0, ps.charPos ); 3332string encodingName = ps.encoding.WebName; 3334encodingName != "utf-16BE" && !( ps.encoding is Ucs4Encoding ) ) { 3335Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" ); 3529string encodingName = ps.encoding.WebName; 3531encodingName != "utf-16BE" && !( ps.encoding is Ucs4Encoding ) ) { 3532Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" ); 5474reportedEncoding = ps.encoding; 5603reportedEncoding = ps.encoding; 5615reportedEncoding = ps.encoding; 7212Encoding enc = ps.encoding; 7228Encoding enc = ps.encoding;
System\Xml\Core\XmlTextReaderImplAsync.cs (17)
93reportedEncoding = ps.encoding; 120reportedEncoding = ps.encoding; 134reportedEncoding = ps.encoding; 206reportedEncoding = ps.encoding; 214reportedEncoding = ps.encoding; 278reportedEncoding = ps.encoding; 282reportedEncoding = ps.encoding; 881byte[] preamble = ps.encoding.GetPreamble(); 963if ( ( newEncoding.WebName != ps.encoding.WebName || ps.decoder is SafeAsciiDecoder ) && !afterResetState) { 1164string encodingName = ps.encoding.WebName; 1166encodingName != "utf-16BE" && !( ps.encoding is Ucs4Encoding ) ) { 1167Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" ); 1362string encodingName = ps.encoding.WebName; 1364encodingName != "utf-16BE" && !( ps.encoding is Ucs4Encoding ) ) { 1365Throw( Res.Xml_EncodingSwitchAfterResetState, ( ps.encoding.GetByteCount( "A" ) == 1 ) ? "UTF-8" : "UTF-16" ); 3539reportedEncoding = ps.encoding; 4857Encoding enc = ps.encoding;