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

◆ MoveToAttribute()

bool System.Xml.DataPointer.MoveToAttribute ( int i)
inlinepackage

Definition at line 558 of file DataPointer.cs.

559 {
560 RealFoliate();
561 if (i < 0)
562 {
563 return false;
564 }
565 if (_node != null && (_column == null || _column.ColumnMapping == MappingType.Attribute) && _node.NodeType == XmlNodeType.Element)
566 {
567 if (!IsFoliated(_node))
568 {
570 if (dataColumn != null)
571 {
573 return true;
574 }
575 }
576 else
577 {
578 XmlNode xmlNode = _node.Attributes.Item(i);
579 if (xmlNode != null)
580 {
581 MoveTo(xmlNode, null, fOnValue: false);
582 return true;
583 }
584 }
585 }
586 return false;
587 }
virtual MappingType ColumnMapping
void MoveTo(DataPointer pointer)
static bool IsFoliated(XmlNode node)
DataColumn NthColumn(DataRow row, bool fAttribute, int iColumn, bool fNulls)
virtual ? XmlNode Item(int index)
virtual ? XmlAttributeCollection Attributes
Definition XmlNode.cs:106
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DataPointer._column, System.Xml.DataPointer._node, System.Xml.XmlNode.Attributes, System.Data.DataColumn.ColumnMapping, System.Xml.Dictionary, System.Xml.DataPointer.IsFoliated(), System.Xml.XmlNamedNodeMap.Item(), System.Xml.DataPointer.MoveTo(), System.Xml.XmlNode.NodeType, System.Xml.DataPointer.NthColumn(), System.Xml.DataPointer.RealFoliate(), and System.Xml.DataPointer.Row.