Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SkipAsync()

override async Task System.Xml.XmlSubtreeReader.SkipAsync ( )
inlinevirtual

Reimplemented from System.Xml.XmlReader.

Definition at line 1433 of file XmlSubtreeReader.cs.

1434 {
1435 switch (_state)
1436 {
1437 case State.Initial:
1439 break;
1440 case State.Interactive:
1441 _curNsAttr = -1;
1442 _useCurNode = false;
1444 if (reader.Depth == _initialDepth)
1445 {
1446 if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement && await reader.ReadAsync().ConfigureAwait(continueOnCapturedContext: false))
1447 {
1448 while (reader.NodeType != XmlNodeType.EndElement && reader.Depth > _initialDepth)
1449 {
1451 }
1452 }
1453 _state = State.EndOfFile;
1454 SetEmptyNode();
1455 }
1456 else
1457 {
1458 if (reader.NodeType == XmlNodeType.Element && !reader.IsEmptyElement)
1459 {
1461 }
1464 }
1465 break;
1466 case State.EndOfFile:
1467 case State.Closed:
1468 break;
1469 case State.PopNamespaceScope:
1471 goto case State.ClearNsAttributes;
1472 case State.ClearNsAttributes:
1473 _nsAttrCount = 0;
1474 _state = State.Interactive;
1475 goto case State.Interactive;
1476 case State.ReadElementContentAsBase64:
1477 case State.ReadElementContentAsBinHex:
1479 {
1481 }
1482 break;
1483 case State.ReadContentAsBase64:
1484 case State.ReadContentAsBinHex:
1486 {
1488 }
1489 break;
1490 case State.Error:
1491 break;
1492 }
1493 }
virtual Task SkipAsync()
virtual Task< bool > ReadAsync()
XmlNodeType NodeType
Definition XmlReader.cs:62
override async Task< bool > ReadAsync()
readonly XmlNamespaceManager _nsManager
async Task< bool > FinishReadContentAsBinaryAsync()
override async Task SkipAsync()
async Task< bool > FinishReadElementContentAsBinaryAsync()

References System.Xml.XmlSubtreeReader._curNsAttr, System.Xml.XmlSubtreeReader._initialDepth, System.Xml.XmlSubtreeReader._nsAttrCount, System.Xml.XmlSubtreeReader._nsManager, System.Xml.XmlSubtreeReader._state, System.Xml.XmlSubtreeReader._useCurNode, System.Xml.XmlReader.Depth, System.Xml.XmlSubtreeReader.FinishReadContentAsBinaryAsync(), System.Xml.XmlSubtreeReader.FinishReadElementContentAsBinaryAsync(), System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.MoveToElement(), System.Xml.XmlReader.NodeType, System.Xml.XmlNamespaceManager.PopScope(), System.Xml.XmlSubtreeReader.ProcessNamespaces(), System.Xml.XmlReader.ReadAsync(), System.Xml.XmlSubtreeReader.ReadAsync(), System.Xml.XmlWrappingReader.reader, System.Xml.XmlSubtreeReader.SetEmptyNode(), System.Xml.XmlReader.SkipAsync(), and System.Xml.XmlSubtreeReader.SkipAsync().

Referenced by System.Xml.XmlSubtreeReader.SkipAsync().