2592 {
2593 bool result = false;
2594 if (particle
is XmlSchemaElement)
2595 {
2598 }
2599 else if (particle
is XmlSchemaAny)
2600 {
2601 result = true;
2604 }
2605 else if (particle
is XmlSchemaGroupBase)
2606 {
2607 XmlSchemaObjectCollection items = ((XmlSchemaGroupBase)particle).Items;
2608 bool flag = particle
is XmlSchemaChoice;
2611 for (
int i = 0;
i < items.Count;
i++)
2612 {
2614 {
2616 }
2617 else if (flag)
2618 {
2620 }
2621 else
2622 {
2624 }
2626 }
2628 }
2629 if (!(particle.MinOccurs == 1
m) || !(particle.MaxOccurs == 1
m))
2630 {
2631 if (particle.MinOccurs == 0
m && particle.MaxOccurs == 1
m)
2632 {
2634 }
2635 else if (particle.MinOccurs == 0
m && particle.MaxOccurs == decimal.MaxValue)
2636 {
2638 }
2639 else if (particle.MinOccurs == 1
m && particle.MaxOccurs == decimal.MaxValue)
2640 {
2642 }
2643 else
2644 {
2646 }
2647 }
2648 return result;
2649 }
bool BuildParticleContentModel(ParticleContentValidator contentValidator, XmlSchemaParticle particle)