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

◆ IsSequenceFromChoice()

bool System.Xml.Schema.SchemaCollectionCompiler.IsSequenceFromChoice ( XmlSchemaSequence derivedSequence,
XmlSchemaChoice baseChoice )
inlineprivate

Definition at line 1420 of file SchemaCollectionCompiler.cs.

1421 {
1424 {
1425 return false;
1426 }
1427 for (int i = 0; i < derivedSequence.Items.Count; i++)
1428 {
1429 if (GetMappingParticle((XmlSchemaParticle)derivedSequence.Items[i], baseChoice.Items) < 0)
1430 {
1431 return false;
1432 }
1433 }
1434 return true;
1435 }
int GetMappingParticle(XmlSchemaParticle particle, XmlSchemaObjectCollection collection)
void CalculateSequenceRange(XmlSchemaSequence sequence, out decimal minOccurs, out decimal maxOccurs)
bool IsValidOccurrenceRangeRestriction(XmlSchemaParticle derivedParticle, XmlSchemaParticle baseParticle)

References System.Xml.Schema.SchemaCollectionCompiler.CalculateSequenceRange(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Schema.SchemaCollectionCompiler.GetMappingParticle(), and System.Xml.Schema.SchemaCollectionCompiler.IsValidOccurrenceRangeRestriction().

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