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

CompileParticleElements() private méthode

private CompileParticleElements ( XmlSchemaComplexType complexType, XmlSchemaParticle particle ) : void
complexType XmlSchemaComplexType
particle XmlSchemaParticle
Résultat void
        private void CompileParticleElements(XmlSchemaComplexType complexType, XmlSchemaParticle particle) {
            if (particle is XmlSchemaElement) {
                XmlSchemaElement localElement = (XmlSchemaElement)particle;
                CompileElement(localElement); 
                if (complexType.LocalElements[localElement.QualifiedName] == null) {
                    complexType.LocalElements.Add(localElement.QualifiedName, localElement);
                }
                else {
                    complexType.HasDuplicateDecls = true;
                    XmlSchemaElement element = (XmlSchemaElement)complexType.LocalElements[localElement.QualifiedName];
                    if (element.ElementSchemaType != localElement.ElementSchemaType) {
                        SendValidationEvent(Res.Sch_ElementTypeCollision, particle);
                    }
                }                 
            }
            else if (particle is XmlSchemaGroupBase) {
                XmlSchemaObjectCollection particles = ((XmlSchemaGroupBase)particle).Items;
                foreach (XmlSchemaParticle p in particles) {
                    CompileParticleElements(complexType, p);
                }
            }
        }

Same methods

Compiler::CompileParticleElements ( XmlSchemaParticle particle ) : void
Compiler