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

CleanupElement() private méthode

private CleanupElement ( XmlSchemaElement element ) : void
element XmlSchemaElement
Résultat void
        private void CleanupElement(XmlSchemaElement element) {
            if (element.SchemaType != null) {
                XmlSchemaComplexType complexType = element.SchemaType as XmlSchemaComplexType;
                if (complexType != null) {
                    CleanupComplexType(complexType);
                }
                else {
                    CleanupSimpleType((XmlSchemaSimpleType)element.SchemaType);
                }
            }
            foreach (XmlSchemaIdentityConstraint constr in element.Constraints) {
                constr.CompiledConstraint = null;
            }
            element.ElementDecl = null;
            element.IsLocalTypeDerivationChecked = false; //clear Local element type derivation check 
        }
        
Compiler