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

◆ Add() [4/9]

XmlSchema? System.Xml.Schema.XmlSchemaCollection.Add ( string? ns,
string uri )
inline

Definition at line 87 of file XmlSchemaCollection.cs.

88 {
89 if (uri == null || uri.Length == 0)
90 {
91 throw new ArgumentNullException("uri");
92 }
93 XmlTextReader xmlTextReader = new XmlTextReader(uri, _nameTable);
95 XmlSchema xmlSchema = null;
96 try
97 {
99 while (xmlTextReader.Read())
100 {
101 }
102 return xmlSchema;
103 }
104 finally
105 {
106 xmlTextReader.Close();
107 }
108 }

References System.Xml.Schema.XmlSchemaCollection._nameTable, System.Xml.Schema.XmlSchemaCollection._xmlResolver, System.Add, and System.Xml.Dictionary.