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

◆ Reprocess()

XmlSchema System.Xml.Schema.XmlSchemaSet.Reprocess ( XmlSchema schema)
inline

Definition at line 541 of file XmlSchemaSet.cs.

542 {
543 if (schema == null)
544 {
545 throw new ArgumentNullException("schema");
546 }
547 if (!_schemas.ContainsKey(schema.SchemaId))
548 {
550 }
551 XmlSchema result = schema;
553 {
556 if (schema.BaseUri != null)
557 {
559 }
561 if (Schemas(targetNamespace).Count == 0)
562 {
564 }
565 _isCompiled = false;
566 _compileAll = true;
567 if (schema.ErrorCount != 0)
568 {
569 return result;
570 }
571 if (PreprocessSchema(ref schema, schema.TargetNamespace))
572 {
574 {
576 }
577 if (_schemaForSchema == null && targetNamespace == "http://www.w3.org/2001/XMLSchema" && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null)
578 {
580 }
581 for (int i = 0; i < schema.ImportedSchemas.Count; i++)
582 {
583 XmlSchema xmlSchema = (XmlSchema)schema.ImportedSchemas[i];
584 if (!_schemas.ContainsKey(xmlSchema.SchemaId))
585 {
586 _schemas.Add(xmlSchema.SchemaId, xmlSchema);
587 }
590 {
592 }
593 if (_schemaForSchema == null && targetNamespace == "http://www.w3.org/2001/XMLSchema" && schema.SchemaTypes[DatatypeImplementation.QnAnyType] != null)
594 {
596 }
597 }
598 return schema;
599 }
600 return result;
601 }
602 }
virtual void Remove(object key)
virtual void Add(object key, object? value)
Definition Hashtable.cs:676
virtual void Add(object key, object? value)
virtual bool ContainsKey(object key)
static string Sch_SchemaDoesNotExist
Definition SR.cs:1170
Definition SR.cs:7
void RemoveSchemaFromGlobalTables(XmlSchema schema)
string GetTargetNamespace(XmlSchema schema)
readonly Hashtable _targetNamespaces
bool PreprocessSchema(ref XmlSchema schema, string targetNamespace)
void RemoveSchemaFromCaches(XmlSchema schema)
readonly Hashtable _schemaLocations
readonly SortedList _schemas

References System.Xml.Schema.XmlSchemaSet._compileAll, System.Xml.Schema.XmlSchemaSet._isCompiled, System.Xml.Schema.XmlSchemaSet._schemaForSchema, System.Xml.Schema.XmlSchemaSet._schemaLocations, System.Xml.Schema.XmlSchemaSet._schemas, System.Xml.Schema.XmlSchemaSet._targetNamespaces, System.Collections.SortedList.Add(), System.Collections.Hashtable.Add(), System.Xml.ArgumentException, System.Collections.SortedList.ContainsKey(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.XmlSchemaSet.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaSet.GetTargetNamespace(), System.Xml.Schema.XmlSchemaSet.InternalSyncObject, System.Xml.Schema.XmlSchemaSet.PreprocessSchema(), System.Xml.Schema.DatatypeImplementation.QnAnyType, System.Collections.Hashtable.Remove(), System.Xml.Schema.XmlSchemaSet.RemoveSchemaFromCaches(), System.Xml.Schema.XmlSchemaSet.RemoveSchemaFromGlobalTables(), System.SR.Sch_SchemaDoesNotExist, and System.Xml.Schema.XmlSchemaSet.Schemas().

Referenced by System.Runtime.Serialization.SchemaExporter.AddDefaultDatasetType(), System.Runtime.Serialization.SchemaExporter.AddDefaultTypedDatasetType(), System.Runtime.Serialization.SchemaExporter.AddDefaultXmlType(), System.Xml.Serialization.XmlSchemas.AddName(), System.Runtime.Serialization.SchemaExporter.ExportDataContract(), and System.Xml.Schema.XmlSchemaInference.InferSchema1().