private XmlSchemaParticle CompileContentTypeParticle(XmlSchemaParticle particle) {
XmlSchemaParticle ctp = CannonicalizeParticle(particle, true);
XmlSchemaChoice choice = ctp as XmlSchemaChoice;
if (choice != null && choice.Items.Count == 0) {
if (choice.MinOccurs != decimal.Zero) {
SendValidationEvent(Res.Sch_EmptyChoice, choice, XmlSeverityType.Warning);
}
return XmlSchemaParticle.Empty;
}
return ctp;
}