2 writes to v1Compat
System.Xml (2)
System\Xml\Core\XmlTextReaderImpl.cs (2)
351
v1Compat
= true;
402
v1Compat
= false;
39 references to v1Compat
System.Xml (39)
System\Xml\Core\XmlTextReaderImpl.cs (28)
1896
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.Normalization property cannot be accessed on reader created via XmlReader.Create." );
1900
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.Normalization property cannot be changed on reader created via XmlReader.Create." );
1922
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.WhitespaceHandling property cannot be accessed on reader created via XmlReader.Create." );
1926
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.WhitespaceHandling property cannot be changed on reader created via XmlReader.Create." );
1941
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.DtdProcessing property cannot be accessed on reader created via XmlReader.Create." );
1945
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.DtdProcessing property cannot be changed on reader created via XmlReader.Create." );
1988
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.ResetState cannot be called on reader created via XmlReader.Create." );
2025
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.GetRemainder cannot be called on reader created via XmlReader.Create." );
2062
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.ReadChars cannot be called on reader created via XmlReader.Create." );
2096
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.ReadBase64 cannot be called on reader created via XmlReader.Create." );
2126
Debug.Assert(
v1Compat
, "XmlTextReaderImpl.ReadBinHex cannot be called on reader created via XmlReader.Create." );
2193
return
v1Compat
;
2407
if (
v1Compat
) {
3687
else if ( pos == ps.charsUsed || ( (
v1Compat
|| mangoQuirks ) && chars[pos] == 0x0 ) ) {
4957
if (
v1Compat
) {
5133
(
v1Compat
&& entityType == EntityType.CharacterDec ) ) {
5151
if ( !
v1Compat
) {
6044
ThrowWithoutLineInfo(
v1Compat
? Res.Xml_DtdIsProhibited : Res.Xml_DtdIsProhibitedEx );
6098
if ( ( validatingReaderCompatFlag || !
v1Compat
) && ( dtdInfo.HasDefaultAttributes || dtdInfo.HasNonCDataAttributes ) ) {
6574
( (
v1Compat
&& normalize ) || (!
v1Compat
&& checkCharacters ) ) ) {
7022
if ( !Ref.Equal( prefix, Xml ) && !
v1Compat
) {
7128
if (
v1Compat
) {
7203
if (
v1Compat
) {
7922
if (
v1Compat
&& pos == ps.charsUsed - 1 && ps.chars[pos] == (char)0 && ReadData() == 0 && ps.isStreamEof ) {
7942
if ( ( validatingReaderCompatFlag || !
v1Compat
) && ( dtdInfo.HasDefaultAttributes || dtdInfo.HasNonCDataAttributes ) ) {
8100
if ( ( validatingReaderCompatFlag || !
v1Compat
) && ( dtdInfo.HasDefaultAttributes || dtdInfo.HasNonCDataAttributes ) ) {
8191
return
v1Compat
;
System\Xml\Core\XmlTextReaderImplAsync.cs (11)
806
if (
v1Compat
) {
1468
else if (pos == ps.charsUsed || (
v1Compat
&& chars[pos] == 0x0)) {
2797
if (
v1Compat
) {
3142
(
v1Compat
&& entityType == EntityType.CharacterDec)) {
3169
if (!
v1Compat
) {
4096
ThrowWithoutLineInfo(
v1Compat
? Res.Xml_DtdIsProhibited : Res.Xml_DtdIsProhibitedEx );
4150
if ( ( validatingReaderCompatFlag || !
v1Compat
) && ( dtdInfo.HasDefaultAttributes || dtdInfo.HasNonCDataAttributes ) ) {
4769
if (
v1Compat
) {
4848
if (
v1Compat
) {
4877
if (
v1Compat
&& pos == ps.charsUsed - 1 && ps.chars[pos] == (char)0 && await ReadDataAsync().ConfigureAwait(false) == 0 && ps.isStreamEof ) {
4896
if ( ( validatingReaderCompatFlag || !
v1Compat
) && ( dtdInfo.HasDefaultAttributes || dtdInfo.HasNonCDataAttributes ) ) {