private ElementAccessor ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType)
{
XmlSchemaElement element = FindElement(name);
ElementAccessor accessor = (ElementAccessor)ImportedElements[element];
if (accessor != null) return accessor;
accessor = ImportElement(element, string.Empty, desiredMappingType, baseType, name.Namespace, true);
ElementAccessor existing = (ElementAccessor)ImportedElements[element];
if (existing != null)
{
return existing;
}
ImportedElements.Add(element, accessor);
return accessor;
}