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

◆ CheckRefinedComplexType()

void System.Xml.Schema.SchemaCollectionPreprocessor.CheckRefinedComplexType ( XmlSchemaComplexType ctype)
inlineprivate

Definition at line 737 of file SchemaCollectionPreprocessor.cs.

738 {
739 if (ctype.ContentModel != null)
740 {
741 XmlQualifiedName xmlQualifiedName;
742 if (ctype.ContentModel is XmlSchemaComplexContent)
743 {
744 XmlSchemaComplexContent xmlSchemaComplexContent = (XmlSchemaComplexContent)ctype.ContentModel;
745 xmlQualifiedName = ((!(xmlSchemaComplexContent.Content is XmlSchemaComplexContentRestriction)) ? ((XmlSchemaComplexContentExtension)xmlSchemaComplexContent.Content).BaseTypeName : ((XmlSchemaComplexContentRestriction)xmlSchemaComplexContent.Content).BaseTypeName);
746 }
747 else
748 {
749 XmlSchemaSimpleContent xmlSchemaSimpleContent = (XmlSchemaSimpleContent)ctype.ContentModel;
750 xmlQualifiedName = ((!(xmlSchemaSimpleContent.Content is XmlSchemaSimpleContentRestriction)) ? ((XmlSchemaSimpleContentExtension)xmlSchemaSimpleContent.Content).BaseTypeName : ((XmlSchemaSimpleContentRestriction)xmlSchemaSimpleContent.Content).BaseTypeName);
751 }
752 if (xmlQualifiedName == ctype.QualifiedName)
753 {
754 return;
755 }
756 }
758 }
static string Sch_InvalidTypeRedefine
Definition SR.cs:830
Definition SR.cs:7
void SendValidationEvent(string code, XmlSchemaObject source)

References System.Xml.Dictionary, System.SR.Sch_InvalidTypeRedefine, and System.Xml.Schema.BaseProcessor.SendValidationEvent().

Referenced by System.Xml.Schema.SchemaCollectionPreprocessor.PreprocessRedefine().