System.Xml.Schema.Compiler.CompileContentTypeParticle C# (CSharp) Méthode

CompileContentTypeParticle() private méthode

private CompileContentTypeParticle ( XmlSchemaParticle particle ) : XmlSchemaParticle
particle XmlSchemaParticle
Résultat XmlSchemaParticle
        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;
        }
Compiler