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

◆ CheckRefinedComplexType()

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

Definition at line 988 of file Preprocessor.cs.

989 {
990 if (ctype.ContentModel != null)
991 {
992 XmlQualifiedName xmlQualifiedName;
993 if (ctype.ContentModel is XmlSchemaComplexContent)
994 {
995 XmlSchemaComplexContent xmlSchemaComplexContent = (XmlSchemaComplexContent)ctype.ContentModel;
996 xmlQualifiedName = ((!(xmlSchemaComplexContent.Content is XmlSchemaComplexContentRestriction)) ? ((XmlSchemaComplexContentExtension)xmlSchemaComplexContent.Content).BaseTypeName : ((XmlSchemaComplexContentRestriction)xmlSchemaComplexContent.Content).BaseTypeName);
997 }
998 else
999 {
1000 XmlSchemaSimpleContent xmlSchemaSimpleContent = (XmlSchemaSimpleContent)ctype.ContentModel;
1001 xmlQualifiedName = ((!(xmlSchemaSimpleContent.Content is XmlSchemaSimpleContentRestriction)) ? ((XmlSchemaSimpleContentExtension)xmlSchemaSimpleContent.Content).BaseTypeName : ((XmlSchemaSimpleContentRestriction)xmlSchemaSimpleContent.Content).BaseTypeName);
1002 }
1003 if (xmlQualifiedName == ctype.QualifiedName)
1004 {
1005 return;
1006 }
1007 }
1009 }
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.Preprocessor.PreprocessRedefine().