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