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

◆ AddRef()

void System.Xml.Serialization.SchemaGraph.AddRef ( ArrayList list,
XmlSchemaObject o )
inlinepackage

Definition at line 39 of file SchemaGraph.cs.

40 {
41 if (o != null && !_schemas.IsReference(o) && o.Parent is XmlSchema xmlSchema)
42 {
43 string targetNamespace = xmlSchema.TargetNamespace;
44 if (!(targetNamespace == "http://www.w3.org/2001/XMLSchema") && !list.Contains(o))
45 {
46 list.Add(o);
47 }
48 }
49 }
bool IsReference(XmlSchemaObject type)

References System.Xml.Serialization.SchemaGraph._schemas, System.Xml.Dictionary, System.Xml.Serialization.XmlSchemas.IsReference(), and System.list.

Referenced by System.Xml.Serialization.SchemaGraph.Depends().