9 writes to type
System.Private.Xml (9)
System\Xml\Core\XmlTextReaderImpl.cs (4)
4641
startTagNode.
type
= XmlNodeType.EndElement;
6186
_curNode.
type
= XmlNodeType.EndEntity;
8539
_curNode.
type
= XmlNodeType.Attribute;
9123
_curNode.
type
= newNodeType;
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
2259
startTagNode.
type
= XmlNodeType.EndElement;
System\Xml\Core\XmlTextReaderImplHelpers.cs (4)
479
this.
type
= type;
513
this.
type
= type;
521
this.
type
= type;
540
this.
type
= type;
70 references to type
System.Private.Xml (70)
System\Xml\Core\XmlTextReaderImpl.cs (42)
861
return _curNode.
type
;
964
return _curNode.
type
== XmlNodeType.Attribute ? _curNode.quoteChar : '"';
1182
else if (_curNode.
type
!= XmlNodeType.Attribute)
1270
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
1382
switch (_curNode.
type
)
1394
Debug.Assert(_curNode.
type
== XmlNodeType.EndElement);
1424
if (_curNode.
type
!= XmlNodeType.Attribute)
1493
if (_curNode.
type
!= XmlNodeType.EntityReference)
1620
if (!XmlReader.CanReadContentAs(_curNode.
type
))
1667
if (!XmlReader.CanReadContentAs(_curNode.
type
))
1713
if (_curNode.
type
!= XmlNodeType.Element)
1760
if (_curNode.
type
!= XmlNodeType.Element)
1790
if (!XmlReader.HasValueInternal(_curNode.
type
))
1792
throw new InvalidOperationException(SR.Format(SR.Xml_InvalidReadValueChunk, _curNode.
type
));
2221
if (_curNode.
type
!= XmlNodeType.Element)
2255
if (_curNode.
type
!= XmlNodeType.Element)
2289
if (_curNode.
type
!= XmlNodeType.Element)
4067
if (_fragmentType == XmlNodeType.None && _curNode.
type
== XmlNodeType.Text)
4260
if (_index == 0 && _curNode.
type
!= XmlNodeType.Element)
4271
if (el.
type
!= XmlNodeType.Element)
4452
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
4651
if (startTag.
type
== XmlNodeType.Element)
4666
Debug.Assert(startTag.
type
== XmlNodeType.EntityReference);
4728
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
4736
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
4962
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
4978
if (at.
type
== XmlNodeType.Attribute && at.prefix.Length > 0)
5890
if (_curNode.
type
!= XmlNodeType.EndElement)
5892
Throw(SR.Xml_InvalidNodeType, _curNode.
type
.ToString());
6182
Debug.Assert(_curNode.
type
== XmlNodeType.EntityReference);
7714
Debug.Assert(attr.
type
== XmlNodeType.Attribute);
8537
if (_curNode.
type
== XmlNodeType.None)
8902
if (!XmlReader.IsTextualNode(_curNode.
type
))
8918
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
8933
if (_curNode.
type
!= XmlNodeType.EndElement)
8935
Throw(SR.Xml_InvalidNodeType, _curNode.
type
.ToString());
8952
switch (_curNode.
type
)
9122
Debug.Assert(_curNode.
type
== XmlNodeType.Whitespace && newNodeType == XmlNodeType.SignificantWhitespace, "Incorrect node type change!");
9298
Debug.Assert(_nodes[_index].
type
== XmlNodeType.Element);
9316
Debug.Assert(_nodes[_index].
type
== XmlNodeType.Element);
9456
if (_curNode.
type
!= XmlNodeType.EndElement)
9458
throw new XmlException(SR.Xml_InvalidNodeType, _curNode.
type
.ToString(), this as IXmlLineInfo);
System\Xml\Core\XmlTextReaderImplAsync.cs (24)
203
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
344
switch (_curNode.
type
)
356
Debug.Assert(_curNode.
type
== XmlNodeType.EndElement);
416
if (!XmlReader.CanReadContentAs(_curNode.
type
))
472
if (!XmlReader.CanReadContentAs(_curNode.
type
))
537
if (_curNode.
type
!= XmlNodeType.Element)
593
if (_curNode.
type
!= XmlNodeType.Element)
615
if (!XmlReader.HasValueInternal(_curNode.
type
))
617
throw new InvalidOperationException(SR.Format(SR.Xml_InvalidReadValueChunk, _curNode.
type
));
1659
if (_fragmentType == XmlNodeType.None && _curNode.
type
== XmlNodeType.Text)
1680
if (_fragmentType == XmlNodeType.None && _curNode.
type
== XmlNodeType.Text)
2282
if (startTag.
type
== XmlNodeType.Element)
2299
Debug.Assert(startTag.
type
== XmlNodeType.EntityReference);
2361
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
2369
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
3667
if (_curNode.
type
!= XmlNodeType.EndElement)
3669
Throw(SR.Xml_InvalidNodeType, _curNode.
type
.ToString());
5281
if (!XmlReader.IsTextualNode(_curNode.
type
))
5297
Debug.Assert(_curNode.
type
== XmlNodeType.Element);
5311
if (_curNode.
type
!= XmlNodeType.EndElement)
5313
Throw(SR.Xml_InvalidNodeType, _curNode.
type
.ToString());
5328
switch (_curNode.
type
)
5465
if (_curNode.
type
!= XmlNodeType.EndElement)
5467
throw new XmlException(SR.Xml_InvalidNodeType, _curNode.
type
.ToString(), this as IXmlLineInfo);
System\Xml\Core\XmlTextReaderImplHelpers.cs (4)
413
return
type
== XmlNodeType.Element && _isEmptyOrDefault;
417
Debug.Assert(
type
== XmlNodeType.Element);
426
return
type
== XmlNodeType.Attribute && _isEmptyOrDefault;
430
Debug.Assert(
type
== XmlNodeType.Attribute);