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

◆ Find() [3/3]

XmlSchemaObject System.Xml.Serialization.XmlSchemas.Find ( XmlSchemaObject o,
IList originals )
inlinepackage

Definition at line 643 of file XmlSchemas.cs.

644 {
645 string text = ItemName(o);
646 if (text == null)
647 {
648 return null;
649 }
650 Type type = o.GetType();
651 foreach (XmlSchema original in originals)
652 {
653 foreach (XmlSchemaObject item in original.Items)
654 {
655 if (item.GetType() == type && text == ItemName(item))
656 {
657 return item;
658 }
659 }
660 }
661 return null;
662 }
static string ItemName(XmlSchemaObject o)

References System.item, System.Xml.Serialization.XmlSchemas.ItemName(), System.text, and System.type.