TypeMapping ImportType(XmlSchemaComplexType type, string typeNs, bool excludeFromImport) {
if (type.Redefined != null) {
// we do not support redefine in the current version
throw new NotSupportedException(Res.GetString(Res.XmlUnsupportedRedefine, type.Name, typeNs));
}
TypeMapping mapping = ImportAnyType(type, typeNs);
if (mapping == null)
mapping = ImportArrayMapping(type, typeNs);
if (mapping == null)
mapping = ImportStructType(type, typeNs, excludeFromImport);
return mapping;
}
TypeMapping ImportAnyType(XmlSchemaComplexType type, string typeNs){