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

◆ NextColumn()

DataColumn System.Xml.XPathNodePointer.NextColumn ( DataRow row,
DataColumn col,
bool fAttribute )
inlinepackage

Definition at line 551 of file XPathNodePointer.cs.

552 {
553 if (row.RowState == DataRowState.Deleted)
554 {
555 return null;
556 }
557 DataTable table = row.Table;
559 int i = ((col != null) ? (col.Ordinal + 1) : 0);
560 int count = columns.Count;
561 DataRowVersion version = ((row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current);
562 for (; i < count; i++)
563 {
565 if (!_doc.IsNotMapped(dataColumn) && dataColumn.ColumnMapping == MappingType.Attribute == fAttribute && !Convert.IsDBNull(row[dataColumn, version]))
566 {
567 return dataColumn;
568 }
569 }
570 return null;
571 }
DataColumnCollection Columns
Definition DataTable.cs:327
readonly XmlDataDocument _doc
bool IsNotMapped(DataColumn c)

References System.Xml.XPathNodePointer._doc, System.Data.DataTable.Columns, System.count, System.Xml.Dictionary, System.Convert.IsDBNull(), and System.Xml.XmlDataDocument.IsNotMapped().

Referenced by System.Xml.XPathNodePointer.ColumnCount(), System.Xml.XPathNodePointer.MoveToAttribute(), and System.Xml.XPathNodePointer.MoveToNextAttribute().