System.Xml.Schema.SchemaCollectionCompiler.Cleanup C# (CSharp) Method

Cleanup() private method

private Cleanup ( ) : void
return void
        private void Cleanup() {
            foreach (XmlSchemaGroup group in this.schema.Groups.Values) {
                CleanupGroup(group);
            }
            foreach (XmlSchemaAttributeGroup attributeGroup in this.schema.AttributeGroups.Values) {
                CleanupAttributeGroup(attributeGroup);
            }
            foreach (XmlSchemaType type in this.schema.SchemaTypes.Values) {
                if (type is XmlSchemaComplexType) {
                    CleanupComplexType((XmlSchemaComplexType)type);
                }
                else {
                    CleanupSimpleType((XmlSchemaSimpleType)type);
                }
            }
            foreach (XmlSchemaElement element in this.schema.Elements.Values) {
                CleanupElement(element);
            }
            foreach (XmlSchemaAttribute attribute in this.schema.Attributes.Values) {
                CleanupAttribute(attribute);
            }    
        }

Same methods

SchemaCollectionCompiler::Cleanup ( XmlSchema schema ) : void