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

◆ CheckSubstitutionGroup()

void System.Xml.Schema.SchemaCollectionCompiler.CheckSubstitutionGroup ( XmlSchemaSubstitutionGroup substitutionGroup)
inlineprivate

Definition at line 441 of file SchemaCollectionCompiler.cs.

442 {
443 XmlSchemaElement xmlSchemaElement = (XmlSchemaElement)_schema.Elements[substitutionGroup.Examplar];
444 if (xmlSchemaElement == null)
445 {
446 return;
447 }
448 for (int i = 0; i < substitutionGroup.Members.Count; i++)
449 {
450 XmlSchemaElement xmlSchemaElement2 = (XmlSchemaElement)substitutionGroup.Members[i];
451 if (xmlSchemaElement2 != xmlSchemaElement && !XmlSchemaType.IsDerivedFrom(xmlSchemaElement2.ElementSchemaType, xmlSchemaElement.ElementSchemaType, xmlSchemaElement.FinalResolved))
452 {
454 }
455 }
456 }
static string Sch_InvalidSubstitutionMember
Definition SR.cs:946
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)
XmlSchemaObjectTable Elements
Definition XmlSchema.cs:269

References System.Xml.Schema.SchemaCollectionCompiler._schema, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.XmlSchema.Elements, System.Xml.Schema.XmlSchemaType.IsDerivedFrom(), System.SR.Sch_InvalidSubstitutionMember, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.SchemaCollectionCompiler.Compile().