System.Xml.Schema.Preprocessor.CopyIncludedComponents C# (CSharp) Méthode

CopyIncludedComponents() private méthode

private CopyIncludedComponents ( XmlSchema includedSchema, XmlSchema schema ) : void
includedSchema XmlSchema
schema XmlSchema
Résultat void
        private void CopyIncludedComponents(XmlSchema includedSchema, XmlSchema schema) {
            foreach (XmlSchemaElement element in includedSchema.Elements.Values) {
                AddToTable(schema.Elements, element.QualifiedName, element);
            }
            foreach (XmlSchemaAttribute attribute in includedSchema.Attributes.Values) {
                AddToTable(schema.Attributes, attribute.QualifiedName, attribute);
            }
            foreach (XmlSchemaGroup group in includedSchema.Groups.Values) {
                AddToTable(schema.Groups, group.QualifiedName, group);
            }
            foreach (XmlSchemaAttributeGroup attributeGroup in includedSchema.AttributeGroups.Values) {
                AddToTable(schema.AttributeGroups, attributeGroup.QualifiedName, attributeGroup);
            }
            foreach (XmlSchemaType type in includedSchema.SchemaTypes.Values) {
                AddToTable(schema.SchemaTypes, type.QualifiedName, type);
            }
            foreach (XmlSchemaNotation notation in includedSchema.Notations.Values) {
                AddToTable(schema.Notations, notation.QualifiedName, notation);
            }
        }