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

◆ Add() [2/9]

XmlSchema System.Xml.Schema.XmlSchemaCollection.Add ( string ns,
SchemaInfo schemaInfo,
XmlSchema schema,
bool compile,
XmlResolver resolver )
inlineprivate

Definition at line 269 of file XmlSchemaCollection.cs.

270 {
271 int num = 0;
272 if (schema != null)
273 {
274 if (schema.ErrorCount == 0 && compile)
275 {
276 if (!schema.CompileSchema(this, resolver, schemaInfo, ns, _validationEventHandler, _nameTable, CompileContentModel: true))
277 {
278 num = 1;
279 }
280 ns = ((schema.TargetNamespace == null) ? string.Empty : schema.TargetNamespace);
281 }
282 num += schema.ErrorCount;
283 }
284 else
285 {
286 num += schemaInfo.ErrorCount;
287 ns = NameTable.Add(ns);
288 }
289 if (num == 0)
290 {
291 XmlSchemaCollectionNode xmlSchemaCollectionNode = new XmlSchemaCollectionNode();
296 return schema;
297 }
298 return null;
299 }
string Add(char[] array, int offset, int length)

References System.Xml.Schema.XmlSchemaCollection._nameTable, System.Xml.Schema.XmlSchemaCollection._validationEventHandler, System.Add, System.Xml.NameTable.Add(), System.Xml.Dictionary, and System.Xml.Schema.SchemaInfo.ErrorCount.