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

◆ FindElement()

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

Definition at line 1133 of file XmlSchemaInference.cs.

1134 {
1135 for (int i = 0; i < elements.Count; i++)
1136 {
1137 if (elements[i] is XmlSchemaElement xmlSchemaElement && xmlSchemaElement.RefName != null && xmlSchemaElement.Name == elementName)
1138 {
1139 return xmlSchemaElement;
1140 }
1141 }
1142 return null;
1143 }

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