+2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
+
+ * XmlSchemaImporter.cs: In MS.NET 2.0, simple type arrays are mapped
+ to strings. Make sure maps returned by ImportClassSimpleType are always
+ simple type maps. All this fixes bug #77585.
+
2006-09-05 Lluis Sanchez Gual <lluis@novell.com>
* XmlSchemaImporter.cs: Always import simple type unions
{\r
// It is a simple list (space separated list).\r
// Since this is not supported, map as a single item value\r
- // TODO: improve this\r
member = new XmlTypeMapMemberElement ();\r
+#if NET_2_0\r
+ // In MS.NET those types are mapped to a string\r
+ typeData = TypeTranslator.GetTypeData(typeof(string));\r
+#else\r
typeData = typeData.ListItemTypeData;\r
+#endif\r
}\r
else\r
member = new XmlTypeMapMemberList ();\r
// It is an extension of a primitive or known type\r
\r
TypeData typeData = FindBuiltInType (typeQName, stype);\r
- return GetTypeMapping (typeData);\r
+ XmlTypeMapping rmap = GetTypeMapping (typeData);\r
+ \r
+ // The resulting map must be a simple type. It needs to be explicitely set for arrays\r
+ rmap.IsSimpleType = true;\r
+ return rmap;\r
}\r
\r
bool CanBeEnum (XmlSchemaSimpleType stype)\r