void AddExternalComponentsTo(XmlSchema s, XmlSchemaObjectCollection items, ValidationEventHandler handler, List <CompiledSchemaMemo> handledUris, XmlResolver resolver, XmlSchemaSet col)
{
foreach (XmlSchemaExternal ext in s.Includes)
{
s.ProcessExternal(handler, handledUris, resolver, ext, col);
}
foreach (XmlSchemaObject obj in s.compilationItems)
{
items.Add(obj);
}
// Items might be already resolved (recursive schema imports), or might not be (other cases), so we add items only when appropriate here. (duplicate check is anyways done elsewhere)
foreach (XmlSchemaObject obj in s.Items)
{
if (!items.Contains(obj))
{
items.Add(obj);
}
}
}