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

◆ FindAttribute()

XmlSchemaAttribute System.Xml.Schema.XmlSchemaInference.FindAttribute ( ICollection attributes,
string attrName )
inlinepackage

Definition at line 1104 of file XmlSchemaInference.cs.

1105 {
1106 foreach (XmlSchemaObject attribute in attributes)
1107 {
1108 if (attribute is XmlSchemaAttribute xmlSchemaAttribute && xmlSchemaAttribute.Name == attrName)
1109 {
1110 return xmlSchemaAttribute;
1111 }
1112 }
1113 return null;
1114 }

References System.Xml.Schema.XmlSchemaAttribute.Name.

Referenced by System.Xml.Schema.XmlSchemaInference.AddAttribute().