internal override void ImportDerivedTypes(XmlQualifiedName baseName) { foreach (XmlSchema schema in Schemas) { if (Schemas.IsReference(schema)) { continue; } if (XmlSchemas.IsDataSet(schema)) { continue; } XmlSchemas.Preprocess(schema); foreach (object item in schema.SchemaTypes.Values) { if (item is XmlSchemaType) { XmlSchemaType type = (XmlSchemaType)item; if (type.DerivedFrom == baseName) { ImportType(type.QualifiedName, false); } } } } }
private static bool CanBeDuplicated(XmlSchema existingSchema, XmlSchema schema) { if (XmlSchemas.IsDataSet(existingSchema) && XmlSchemas.IsDataSet(schema) && existingSchema.Id == schema.Id) { return(true); } return(false); }
void ImportDerivedTypes(XmlQualifiedName baseName) { foreach (XmlSchema schema in schemas) { if (XmlSchemas.IsDataSet(schema)) { continue; } foreach (object item in schema.Items) { if (item is XmlSchemaType) { XmlSchemaType type = (XmlSchemaType)item; if (type.DerivedFrom == baseName) { ImportType(new XmlQualifiedName(type.Name, schema.TargetNamespace), false); } } } } }
internal override void ImportDerivedTypes(XmlQualifiedName baseName) { foreach (XmlSchema schema in base.Schemas) { if (!base.Schemas.IsReference(schema) && !XmlSchemas.IsDataSet(schema)) { XmlSchemas.Preprocess(schema); foreach (object obj2 in schema.SchemaTypes.Values) { if (obj2 is XmlSchemaType) { XmlSchemaType type = (XmlSchemaType)obj2; if (type.DerivedFrom == baseName) { this.ImportType(type.QualifiedName, false); } } } } } }