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

◆ IsDuplicateNamespaceAttributeInner()

bool System.Xml.Linq.XNodeReader.IsDuplicateNamespaceAttributeInner ( XAttribute candidateAttribute)
inlineprivate

Definition at line 1189 of file XNodeReader.cs.

1190 {
1191 if (candidateAttribute.Name.LocalName == "xml")
1192 {
1193 return true;
1194 }
1195 XElement xElement = candidateAttribute.parent as XElement;
1196 if (xElement == _root || xElement == null)
1197 {
1198 return false;
1199 }
1200 for (xElement = xElement.parent as XElement; xElement != null; xElement = xElement.parent as XElement)
1201 {
1202 XAttribute xAttribute = xElement.lastAttr;
1203 if (xAttribute != null)
1204 {
1205 do
1206 {
1207 if (xAttribute.name == candidateAttribute.name)
1208 {
1209 if (xAttribute.Value == candidateAttribute.Value)
1210 {
1211 return true;
1212 }
1213 return false;
1214 }
1215 xAttribute = xAttribute.next;
1216 }
1217 while (xAttribute != xElement.lastAttr);
1218 }
1219 if (xElement == _root)
1220 {
1221 return false;
1222 }
1223 }
1224 return false;
1225 }

References System.Xml.Linq.XNodeReader._root, System.Xml.Dictionary, and System.Xml.Linq.XAttribute.next.

Referenced by System.Xml.Linq.XNodeReader.IsDuplicateNamespaceAttribute().