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

◆ IsChoiceFromChoiceSubstGroup()

bool System.Xml.Schema.Compiler.IsChoiceFromChoiceSubstGroup ( XmlSchemaChoice derivedChoice,
XmlSchemaChoice baseChoice )
inlineprivate

Definition at line 1607 of file Compiler.cs.

1608 {
1610 {
1612 return false;
1613 }
1614 for (int i = 0; i < derivedChoice.Items.Count; i++)
1615 {
1616 if (GetMappingParticle((XmlSchemaParticle)derivedChoice.Items[i], baseChoice.Items) < 0)
1617 {
1618 return false;
1619 }
1620 }
1621 return true;
1622 }
static string Sch_GroupBaseRestRangeInvalid
Definition SR.cs:1022
Definition SR.cs:7
int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection)
Definition Compiler.cs:1723
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)
Definition Compiler.cs:1709

References System.Xml.Schema.Compiler._restrictionErrorMsg, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.Compiler.GetMappingParticle(), System.Xml.Schema.Compiler.IsValidOccurrenceRangeRestriction(), and System.SR.Sch_GroupBaseRestRangeInvalid.

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