2 writes to _v1Compat
System.Private.Xml (2)
System\Xml\Core\XmlTextReaderImpl.cs (2)
319
_v1Compat
= true;
359
_v1Compat
= false;
39 references to _v1Compat
System.Private.Xml (39)
System\Xml\Core\XmlTextReaderImpl.cs (28)
2008
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.Normalization property cannot be accessed on reader created via XmlReader.Create.");
2013
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.Normalization property cannot be changed on reader created via XmlReader.Create.");
2041
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.WhitespaceHandling property cannot be accessed on reader created via XmlReader.Create.");
2046
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.WhitespaceHandling property cannot be changed on reader created via XmlReader.Create.");
2066
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.DtdProcessing property cannot be accessed on reader created via XmlReader.Create.");
2071
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.DtdProcessing property cannot be changed on reader created via XmlReader.Create.");
2123
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.ResetState cannot be called on reader created via XmlReader.Create.");
2165
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.GetRemainder cannot be called on reader created via XmlReader.Create.");
2206
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.ReadChars cannot be called on reader created via XmlReader.Create.");
2242
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.ReadBase64 cannot be called on reader created via XmlReader.Create.");
2276
Debug.Assert(
_v1Compat
, "XmlTextReaderImpl.ReadBinHex cannot be called on reader created via XmlReader.Create.");
2353
return
_v1Compat
;
2600
if (
_v1Compat
)
4049
else if (pos == _ps.charsUsed || ((
_v1Compat
|| mangoQuirks) && chars[pos] == 0x0))
5427
if (
_v1Compat
)
5625
(
_v1Compat
&& entityType == EntityType.CharacterDec))
5645
if (!
_v1Compat
)
6669
ThrowWithoutLineInfo(
_v1Compat
? SR.Xml_DtdIsProhibited : SR.Xml_DtdIsProhibitedEx);
6732
if ((_validatingReaderCompatFlag || !
_v1Compat
) && (_dtdInfo.HasDefaultAttributes || _dtdInfo.HasNonCDataAttributes))
7289
((
_v1Compat
&& _normalize) || (!
_v1Compat
&& _checkCharacters)))
7790
if (!Ref.Equal(prefix, _xml) && !
_v1Compat
)
7924
if (
_v1Compat
)
8004
if (
_v1Compat
)
8863
if (
_v1Compat
&& pos == _ps.charsUsed - 1 && _ps.chars[pos] == (char)0 && ReadData() == 0 && _ps.isStreamEof)
8882
if ((_validatingReaderCompatFlag || !
_v1Compat
) && (_dtdInfo.HasDefaultAttributes || _dtdInfo.HasNonCDataAttributes))
9069
if ((_validatingReaderCompatFlag || !
_v1Compat
) && (_dtdInfo.HasDefaultAttributes || _dtdInfo.HasNonCDataAttributes))
9178
return
_v1Compat
;
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
848
if (
_v1Compat
)
1580
else if (pos == _ps.charsUsed || (
_v1Compat
&& chars[pos] == 0x0))
2996
if (
_v1Compat
)
3366
(
_v1Compat
&& entityType == EntityType.CharacterDec))
3395
if (!
_v1Compat
)
4413
ThrowWithoutLineInfo(
_v1Compat
? SR.Xml_DtdIsProhibited : SR.Xml_DtdIsProhibitedEx);
4473
if ((_validatingReaderCompatFlag || !
_v1Compat
) && (_dtdInfo.HasDefaultAttributes || _dtdInfo.HasNonCDataAttributes))
5133
if (
_v1Compat
)
5213
if (
_v1Compat
)
5245
if (
_v1Compat
&& pos == _ps.charsUsed - 1 && _ps.chars[pos] == (char)0 && await ReadDataAsync().ConfigureAwait(false) == 0 && _ps.isStreamEof)
5262
if ((_validatingReaderCompatFlag || !
_v1Compat
) && (_dtdInfo.HasDefaultAttributes || _dtdInfo.HasNonCDataAttributes))