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

◆ AddAttribute() [2/2]

XmlAttributeNode System.Xml.XmlBaseReader.AddAttribute ( QNameType qnameType,
bool isAtomicValue )
inlineprivateinherited

Definition at line 1525 of file XmlBaseReader.cs.

1526 {
1527 int attributeCount = _attributeCount;
1528 if (_attributeNodes == null)
1529 {
1530 _attributeNodes = new XmlAttributeNode[4];
1531 }
1532 else if (_attributeNodes.Length == attributeCount)
1533 {
1534 XmlAttributeNode[] array = new XmlAttributeNode[attributeCount * 2];
1535 Array.Copy(_attributeNodes, array, attributeCount);
1537 }
1538 XmlAttributeNode xmlAttributeNode = _attributeNodes[attributeCount];
1539 if (xmlAttributeNode == null)
1540 {
1541 xmlAttributeNode = new XmlAttributeNode(_bufferReader);
1542 _attributeNodes[attributeCount] = xmlAttributeNode;
1543 }
1549 return xmlAttributeNode;
1550 }
XmlAttributeNode[] _attributeNodes
readonly XmlBufferReader _bufferReader

References System.Xml.XmlBaseReader.NamespaceManager._attributeCount, System.Xml.XmlBaseReader._attributeNodes, System.Xml.XmlBaseReader.NamespaceManager._bufferReader, System.array, System.Array.Copy(), and System.Xml.Dictionary.