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

◆ IsValidTypeRedefine()

bool System.Xml.Schema.BaseProcessor.IsValidTypeRedefine ( XmlSchemaObject existingObject,
XmlSchemaObject item,
XmlSchemaObjectTable table )
inlineprivateinherited

Definition at line 185 of file BaseProcessor.cs.

186 {
187 XmlSchemaType xmlSchemaType = item as XmlSchemaType;
188 XmlSchemaType xmlSchemaType2 = existingObject as XmlSchemaType;
189 if (xmlSchemaType2 == xmlSchemaType.Redefined)
190 {
191 if (xmlSchemaType2.ElementDecl == null)
192 {
193 table.Insert(xmlSchemaType.QualifiedName, xmlSchemaType);
194 return true;
195 }
196 }
197 else if (xmlSchemaType2.Redefined == xmlSchemaType)
198 {
199 return true;
200 }
201 return false;
202 }

References System.Xml.Dictionary, System.Xml.Schema.XmlSchemaObjectTable.Insert(), and System.item.

Referenced by System.Xml.Schema.BaseProcessor.AddToTable().