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

◆ GetColumnSchemaForNode()

DataColumn System.Xml.DataSetMapper.GetColumnSchemaForNode ( XmlBoundElement rowElem,
XmlNode node )
inlinepackage

Definition at line 89 of file DataSetMapper.cs.

90 {
91 object identity = GetIdentity(rowElem.LocalName, rowElem.NamespaceURI);
92 object identity2 = GetIdentity(node.LocalName, node.NamespaceURI);
93 Hashtable hashtable = (Hashtable)_columnSchemaMap[identity];
94 if (hashtable != null)
95 {
97 if (dataColumn == null)
98 {
99 return null;
100 }
102 if (node.NodeType == XmlNodeType.Attribute && columnMapping == MappingType.Attribute)
103 {
104 return dataColumn;
105 }
106 if (node.NodeType == XmlNodeType.Element && columnMapping == MappingType.Element)
107 {
108 return dataColumn;
109 }
110 return null;
111 }
112 return null;
113 }
virtual MappingType ColumnMapping
static object GetIdentity(string localName, string namespaceURI)

References System.Xml.DataSetMapper._columnSchemaMap, System.Xml.Dictionary, and System.Xml.DataSetMapper.GetIdentity().

Referenced by System.Xml.XmlDataDocument.GetColumnInsertAfterLocation(), System.Xml.DataSetMapper.IsRegionRadical(), System.Xml.DataSetMapper.SearchMatchingTableSchema(), and System.Xml.XmlDataDocument.SynchronizeRowFromRowElementEx().