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

◆ EnterScope()

XmlElementNode System.Xml.XmlBaseReader.EnterScope ( )
inlineprotectedinherited

Definition at line 1476 of file XmlBaseReader.cs.

1477 {
1478 if (_depth == 0)
1479 {
1480 if (_rootElement)
1481 {
1482 XmlExceptionHelper.ThrowMultipleRootElements(this);
1483 }
1484 _rootElement = true;
1485 }
1487 _depth++;
1488 if (_depth > _quotas.MaxDepth)
1489 {
1490 XmlExceptionHelper.ThrowMaxDepthExceeded(this, _quotas.MaxDepth);
1491 }
1492 if (_elementNodes == null)
1493 {
1494 _elementNodes = new XmlElementNode[4];
1495 }
1496 else if (_elementNodes.Length == _depth)
1497 {
1498 XmlElementNode[] array = new XmlElementNode[_depth * 2];
1501 }
1502 XmlElementNode xmlElementNode = _elementNodes[_depth];
1503 if (xmlElementNode == null)
1504 {
1505 xmlElementNode = new XmlElementNode(_bufferReader);
1507 }
1508 _attributeCount = 0;
1509 _attributeStart = -1;
1510 _attributeIndex = -1;
1512 return xmlElementNode;
1513 }
readonly XmlDictionaryReaderQuotas _quotas
readonly XmlBufferReader _bufferReader
void MoveToNode(XmlNode node)
readonly NamespaceManager _nsMgr
XmlElementNode[] _elementNodes

References System.Xml.XmlBaseReader.NamespaceManager._attributeCount, System.Xml.XmlBaseReader._attributeIndex, System.Xml.XmlBaseReader._attributeStart, System.Xml.XmlBaseReader.NamespaceManager._bufferReader, System.Xml.XmlBaseReader.NamespaceManager._depth, System.Xml.XmlBaseReader._elementNodes, System.Xml.XmlBaseReader._nsMgr, System.Xml.XmlBaseReader._quotas, System.Xml.XmlBaseReader._rootElement, System.array, System.Array.Copy(), System.Xml.Dictionary, System.Xml.XmlBaseReader.NamespaceManager.EnterScope(), System.Xml.XmlDictionaryReaderQuotas.MaxDepth, System.Xml.XmlBaseReader.MoveToNode(), System.Xml.XmlExceptionHelper.ThrowMaxDepthExceeded(), and System.Xml.XmlExceptionHelper.ThrowMultipleRootElements().

Referenced by System.Runtime.Serialization.Json.XmlJsonReader.ParseAndSetLocalName(), System.Xml.XmlBinaryReader.ReadNode(), System.Runtime.Serialization.Json.XmlJsonReader.ReadNonExistentElementName(), and System.Xml.XmlUTF8TextReader.ReadStartElement().