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

◆ IsRegionRadical()

bool System.Xml.DataSetMapper.IsRegionRadical ( XmlBoundElement rowElem)
inlinepackage

Definition at line 150 of file DataSetMapper.cs.

151 {
152 if (rowElem.ElementState == ElementState.Defoliated)
153 {
154 return true;
155 }
158 int iColumn = 0;
159 int count = rowElem.Attributes.Count;
160 for (int i = 0; i < count; i++)
161 {
162 XmlAttribute xmlAttribute = rowElem.Attributes[i];
163 if (!xmlAttribute.Specified)
164 {
165 return false;
166 }
168 if (columnSchemaForNode == null)
169 {
170 return false;
171 }
173 {
174 return false;
175 }
176 XmlNode firstChild = xmlAttribute.FirstChild;
177 if (firstChild == null || firstChild.NodeType != XmlNodeType.Text || firstChild.NextSibling != null)
178 {
179 return false;
180 }
181 }
182 iColumn = 0;
183 XmlNode xmlNode;
184 for (xmlNode = rowElem.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
185 {
186 if (xmlNode.NodeType != XmlNodeType.Element)
187 {
188 return false;
189 }
190 XmlElement xmlElement = xmlNode as XmlElement;
191 if (GetRowFromElement(xmlElement) != null)
192 {
193 break;
194 }
196 if (columnSchemaForNode2 == null)
197 {
198 return false;
199 }
201 {
202 return false;
203 }
204 if (xmlElement.HasAttributes)
205 {
206 return false;
207 }
208 XmlNode firstChild2 = xmlElement.FirstChild;
209 if (firstChild2 == null || firstChild2.NodeType != XmlNodeType.Text || firstChild2.NextSibling != null)
210 {
211 return false;
212 }
213 }
214 while (xmlNode != null)
215 {
216 if (xmlNode.NodeType != XmlNodeType.Element)
217 {
218 return false;
219 }
221 if (rowFromElement == null)
222 {
223 return false;
224 }
225 xmlNode = xmlNode.NextSibling;
226 }
227 return true;
228 }
DataRow GetRowFromElement(XmlElement e)
DataColumn GetColumnSchemaForNode(XmlBoundElement rowElem, XmlNode node)
DataTable GetTableSchemaForElement(XmlBoundElement be)
bool IsNextColumn(DataColumnCollection columns, ref int iColumn, DataColumn col)

References System.Xml.XmlNode.Attributes, System.Data.InternalDataCollectionBase.Count, System.count, System.Xml.Dictionary, System.Xml.XmlNode.FirstChild, System.Xml.DataSetMapper.GetColumnSchemaForNode(), System.Xml.DataSetMapper.GetRowFromElement(), System.Xml.DataSetMapper.GetTableSchemaForElement(), and System.Xml.DataSetMapper.IsNextColumn().

Referenced by System.Xml.XmlDataDocument.DefoliateRegion().