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

◆ MoveToAttribute() [2/4]

override bool System.Xml.XmlTextReaderImpl.MoveToAttribute ( string localName,
string namespaceURI )
inline

Definition at line 1885 of file XmlTextReaderImpl.cs.

1886 {
1887 string strB = ((namespaceURI == null) ? string.Empty : _nameTable.Get(namespaceURI));
1888 string strB2 = _nameTable.Get(localName);
1889 for (int i = _index + 1; i < _index + _attrCount + 1; i++)
1890 {
1891 if (Ref.Equal(_nodes[i].localName, strB2) && Ref.Equal(_nodes[i].ns, strB))
1892 {
1893 _curAttrIndex = i - _index - 1;
1894 _curNode = _nodes[i];
1896 {
1898 }
1899 return true;
1900 }
1901 }
1902 return false;
1903 }
string? Get(char[] array, int offset, int length)

References System.Xml.XmlTextReaderImpl._attrCount, System.Xml.XmlTextReaderImpl._curAttrIndex, System.Xml.XmlTextReaderImpl._curNode, System.Xml.XmlTextReaderImpl._index, System.Xml.XmlTextReaderImpl._nameTable, System.Xml.XmlTextReaderImpl._nodes, System.Xml.Ref.Equal(), System.Xml.XmlTextReaderImpl.FinishAttributeValueIterator(), System.Xml.XmlNameTable.Get(), and System.Xml.XmlTextReaderImpl.NodeData.localName.