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

◆ FindAttributeRef()

XmlSchemaAttribute System.Xml.Schema.XmlSchemaInference.FindAttributeRef ( ICollection attributes,
string attributeName,
string nsURI )
inlinepackage

Definition at line 1145 of file XmlSchemaInference.cs.

1146 {
1147 foreach (XmlSchemaObject attribute in attributes)
1148 {
1149 if (attribute is XmlSchemaAttribute xmlSchemaAttribute && xmlSchemaAttribute.RefName.Name == attributeName && xmlSchemaAttribute.RefName.Namespace == nsURI)
1150 {
1151 return xmlSchemaAttribute;
1152 }
1153 }
1154 return null;
1155 }

References System.Xml.XmlQualifiedName.Name, System.Xml.XmlQualifiedName.Namespace, and System.Xml.Schema.XmlSchemaAttribute.RefName.

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