9 writes to type
System.Xml (9)
System\Xml\Core\XmlTextReaderImpl.cs (4)
4228
startTagNode.
type
= XmlNodeType.EndElement;
5633
curNode.
type
= XmlNodeType.EndEntity;
7663
curNode.
type
= XmlNodeType.Attribute;
8149
curNode.
type
= newNodeType;
System\Xml\Core\XmlTextReaderImplAsync.cs (1)
2087
startTagNode.
type
= XmlNodeType.EndElement;
System\Xml\Core\XmlTextReaderImplHelpers.cs (4)
444
this.
type
= type;
471
this.
type
= type;
478
this.
type
= type;
495
this.
type
= type;
70 references to type
System.Xml (70)
System\Xml\Core\XmlTextReaderImpl.cs (42)
871
return curNode.
type
;
951
return curNode.
type
== XmlNodeType.Attribute ? curNode.quoteChar : '"';
1125
else if ( curNode.
type
!= XmlNodeType.Attribute ) {
1206
Debug.Assert( curNode.
type
== XmlNodeType.Element );
1319
switch ( curNode.
type
) {
1329
Debug.Assert( curNode.
type
== XmlNodeType.EndElement );
1354
if ( curNode.
type
!= XmlNodeType.Attribute ) {
1430
if ( curNode.
type
!= XmlNodeType.EntityReference ) {
1546
if ( !XmlReader.CanReadContentAs( curNode.
type
) ) {
1594
if ( !XmlReader.CanReadContentAs( curNode.
type
) ) {
1641
if ( curNode.
type
!= XmlNodeType.Element ) {
1689
if ( curNode.
type
!= XmlNodeType.Element ) {
1714
if ( !XmlReader.HasValueInternal( curNode.
type
) ) {
1715
throw new InvalidOperationException( Res.GetString( Res.Xml_InvalidReadValueChunk, curNode.
type
) ) ;
2076
if ( curNode.
type
!= XmlNodeType.Element) {
2106
if ( curNode.
type
!= XmlNodeType.Element) {
2136
if ( curNode.
type
!= XmlNodeType.Element) {
3699
if ( fragmentType == XmlNodeType.None && curNode.
type
== XmlNodeType.Text ) {
3872
if ( index == 0 && curNode.
type
!= XmlNodeType.Element ) {
3880
if ( el.
type
!= XmlNodeType.Element ) {
4057
Debug.Assert( curNode.
type
== XmlNodeType.Element );
4237
if ( startTag.
type
== XmlNodeType.Element ) {
4250
Debug.Assert( startTag.
type
== XmlNodeType.EntityReference );
4318
Debug.Assert( curNode.
type
== XmlNodeType.Element );
4325
Debug.Assert( curNode.
type
== XmlNodeType.Element );
4548
Debug.Assert( curNode.
type
== XmlNodeType.Element );
4560
if ( at.
type
== XmlNodeType.Attribute && at.prefix.Length > 0 ) {
5366
if ( curNode.
type
!= XmlNodeType.EndElement ) {
5367
Throw( Res.Xml_InvalidNodeType, curNode.
type
.ToString() );
5630
Debug.Assert( curNode.
type
== XmlNodeType.EntityReference );
6961
Debug.Assert( attr.
type
== XmlNodeType.Attribute );
7662
if ( curNode.
type
== XmlNodeType.None ) {
7958
if ( !XmlReader.IsTextualNode( curNode.
type
) ) {
7971
Debug.Assert( curNode.
type
== XmlNodeType.Element );
7983
if ( curNode.
type
!= XmlNodeType.EndElement ) {
7984
Throw( Res.Xml_InvalidNodeType, curNode.
type
.ToString() );
7997
switch ( curNode.
type
) {
8148
Debug.Assert( curNode.
type
== XmlNodeType.Whitespace && newNodeType == XmlNodeType.SignificantWhitespace, "Incorrect node type change!" );
8301
Debug.Assert( nodes[index].
type
== XmlNodeType.Element );
8315
Debug.Assert( nodes[index].
type
== XmlNodeType.Element );
8431
if ( curNode.
type
!= XmlNodeType.EndElement ) {
8432
throw new XmlException( Res.Xml_InvalidNodeType, curNode.
type
.ToString(), this as IXmlLineInfo );
System\Xml\Core\XmlTextReaderImplAsync.cs (24)
190
Debug.Assert(curNode.
type
== XmlNodeType.Element);
323
switch ( curNode.
type
) {
333
Debug.Assert( curNode.
type
== XmlNodeType.EndElement );
393
if ( !XmlReader.CanReadContentAs( curNode.
type
) ) {
448
if ( !XmlReader.CanReadContentAs( curNode.
type
) ) {
511
if ( curNode.
type
!= XmlNodeType.Element ) {
566
if ( curNode.
type
!= XmlNodeType.Element ) {
586
if ( !XmlReader.HasValueInternal( curNode.
type
) ) {
587
throw new InvalidOperationException( Res.GetString( Res.Xml_InvalidReadValueChunk, curNode.
type
) ) ;
1535
if (fragmentType == XmlNodeType.None && curNode.
type
== XmlNodeType.Text) {
1551
if (fragmentType == XmlNodeType.None && curNode.
type
== XmlNodeType.Text) {
2107
if ( startTag.
type
== XmlNodeType.Element ) {
2124
Debug.Assert( startTag.
type
== XmlNodeType.EntityReference );
2193
Debug.Assert( curNode.
type
== XmlNodeType.Element );
2200
Debug.Assert( curNode.
type
== XmlNodeType.Element );
3416
if ( curNode.
type
!= XmlNodeType.EndElement ) {
3417
Throw( Res.Xml_InvalidNodeType, curNode.
type
.ToString() );
4912
if ( !XmlReader.IsTextualNode( curNode.
type
) ) {
4925
Debug.Assert( curNode.
type
== XmlNodeType.Element );
4937
if ( curNode.
type
!= XmlNodeType.EndElement ) {
4938
Throw( Res.Xml_InvalidNodeType, curNode.
type
.ToString() );
4951
switch ( curNode.
type
) {
5072
if ( curNode.
type
!= XmlNodeType.EndElement ) {
5073
throw new XmlException( Res.Xml_InvalidNodeType, curNode.
type
.ToString(), this as IXmlLineInfo );
System\Xml\Core\XmlTextReaderImplHelpers.cs (4)
399
return
type
== XmlNodeType.Element && isEmptyOrDefault;
402
Debug.Assert(
type
== XmlNodeType.Element );
409
return
type
== XmlNodeType.Attribute && isEmptyOrDefault;
412
Debug.Assert(
type
== XmlNodeType.Attribute );