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

◆ AttributeDuplCheck()

void System.Xml.XmlTextReaderImpl.AttributeDuplCheck ( )
inlineprivate

Definition at line 4781 of file XmlTextReaderImpl.cs.

4782 {
4783 if (_attrCount < 250)
4784 {
4785 for (int i = _index + 1; i < _index + 1 + _attrCount; i++)
4786 {
4787 NodeData nodeData = _nodes[i];
4788 for (int j = i + 1; j < _index + 1 + _attrCount; j++)
4789 {
4790 if (Ref.Equal(nodeData.localName, _nodes[j].localName) && Ref.Equal(nodeData.ns, _nodes[j].ns))
4791 {
4793 }
4794 }
4795 }
4796 return;
4797 }
4799 {
4800 _attrDuplSortingArray = new NodeData[_attrCount];
4801 }
4804 NodeData nodeData2 = _attrDuplSortingArray[0];
4805 for (int k = 1; k < _attrCount; k++)
4806 {
4807 NodeData nodeData3 = _attrDuplSortingArray[k];
4808 if (Ref.Equal(nodeData2.localName, nodeData3.localName) && Ref.Equal(nodeData2.ns, nodeData3.ns))
4809 {
4810 Throw(System.SR.Xml_DupAttributeName, nodeData3.GetNameWPrefix(_nameTable), nodeData3.LineNo, nodeData3.LinePos);
4811 }
4813 }
4814 }
static string Xml_DupAttributeName
Definition SR.cs:96
Definition SR.cs:7
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._attrCount, System.Xml.XmlTextReaderImpl._attrDuplSortingArray, System.Xml.XmlTextReaderImpl._index, System.Xml.XmlTextReaderImpl._nameTable, System.Xml.XmlTextReaderImpl._nodes, System.Array.Copy(), System.Xml.Dictionary, System.Xml.Ref.Equal(), System.Xml.XmlTextReaderImpl.NodeData.GetNameWPrefix(), System.Xml.XmlTextReaderImpl.NodeData.LineNo, System.Xml.XmlTextReaderImpl.NodeData.LinePos, System.Xml.XmlTextReaderImpl.NodeData.localName, System.Xml.XmlTextReaderImpl.NodeData.ns, System.Array.Sort(), System.Xml.XmlTextReaderImpl.Throw(), and System.SR.Xml_DupAttributeName.

Referenced by System.Xml.XmlTextReaderImpl.ParseAttributes(), and System.Xml.XmlTextReaderImpl.ParseAttributesAsync().