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

◆ FindElementRef()

XmlSchemaElement System.Xml.Schema.XmlSchemaInference.FindElementRef ( XmlSchemaObjectCollection elements,
string elementName,
string nsURI )
inlinepackage

Definition at line 1157 of file XmlSchemaInference.cs.

1158 {
1159 for (int i = 0; i < elements.Count; i++)
1160 {
1161 if (elements[i] is XmlSchemaElement xmlSchemaElement && xmlSchemaElement.RefName != null && xmlSchemaElement.RefName.Name == elementName && xmlSchemaElement.RefName.Namespace == nsURI)
1162 {
1163 return xmlSchemaElement;
1164 }
1165 }
1166 return null;
1167 }

References System.Collections.CollectionBase.Count, System.Xml.XmlQualifiedName.Name, and System.Xml.Schema.XmlSchemaElement.RefName.