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

◆ IsElementFromElement()

bool System.Xml.Schema.SchemaCollectionCompiler.IsElementFromElement ( XmlSchemaElement derivedElement,
XmlSchemaElement baseElement )
inlineprivate

Definition at line 1281 of file SchemaCollectionCompiler.cs.

1282 {
1283 if (derivedElement.QualifiedName == baseElement.QualifiedName && derivedElement.IsNillable == baseElement.IsNillable && IsValidOccurrenceRangeRestriction(derivedElement, baseElement) && (baseElement.FixedValue == null || baseElement.FixedValue == derivedElement.FixedValue) && (derivedElement.BlockResolved | baseElement.BlockResolved) == derivedElement.BlockResolved && derivedElement.ElementSchemaType != null && baseElement.ElementSchemaType != null)
1284 {
1285 return XmlSchemaType.IsDerivedFrom(derivedElement.ElementSchemaType, baseElement.ElementSchemaType, ~XmlSchemaDerivationMethod.Restriction);
1286 }
1287 return false;
1288 }
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)

References System.Xml.Schema.XmlSchemaType.IsDerivedFrom(), and System.Xml.Schema.SchemaCollectionCompiler.IsValidOccurrenceRangeRestriction().

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