Definition at line 1497 of file SchemaCollectionCompiler.cs.
1498 {
1499 if (particle
is XmlSchemaElement || particle
is XmlSchemaAny)
1500 {
1503 return;
1504 }
1505 if (particle
is XmlSchemaChoice)
1506 {
1507 if (((XmlSchemaChoice)particle).Items.Count == 0)
1508 {
1510 return;
1511 }
1516 {
1519 {
1521 }
1523 {
1525 }
1526 }
1529 {
1530 if (particle.MaxOccurs == decimal.MaxValue)
1531 {
1533 }
1534 else
1535 {
1537 }
1538 }
1539 return;
1540 }
1541 XmlSchemaObjectCollection items = ((XmlSchemaGroupBase)particle).Items;
1542 if (items.Count == 0)
1543 {
1545 return;
1546 }
1549 for (
int j = 0;
j < items.
Count;
j++)
1550 {
1554 {
1556 {
1558 }
1559 else
1560 {
1562 }
1563 }
1564 }
1567 {
1568 if (particle.MaxOccurs == decimal.MaxValue)
1569 {
1571 }
1572 else
1573 {
1575 }
1576 }
1577 }
void CalculateEffectiveTotalRange(XmlSchemaParticle particle, out decimal minOccurs, out decimal maxOccurs)
References System.Xml.Schema.SchemaCollectionCompiler.CalculateEffectiveTotalRange(), System.Collections.CollectionBase.Count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Schema.XmlSchemaParticle.MaxOccurs, and System.Xml.Schema.XmlSchemaParticle.MinOccurs.
Referenced by System.Xml.Schema.SchemaCollectionCompiler.CalculateEffectiveTotalRange(), System.Xml.Schema.SchemaCollectionCompiler.IsGroupBaseFromAny(), and System.Xml.Schema.SchemaCollectionCompiler.IsParticleEmptiable().