Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2007-10-29 13:23:35 +0300
committerAtsushi Eno <atsushieno@gmail.com>2007-10-29 13:23:35 +0300
commit1d08a72b56fb36447eeaaa99933d5e3aeaccf244 (patch)
tree76286097211c161ee2bcb38caa53fdd322c06a1e /mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs
parent29783c861fb5dd04a826c23722e8e4a920886344 (diff)
2007-10-30 Atsushi Enomoto <atsushi@ximian.com>
* MapCodeGenerator.cs, XmlSchemaImporter.cs: when a complexType has simple content extension/restriction and the simple base type is schema-defined, it must be written in exported code. Fixed (part of?) bug #336739. * XmlCodeExporterTests.cs : added test for (part of?) bug #336739, base simple content enum type output. svn path=/trunk/mcs/; revision=88363
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs')
-rw-r--r--mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs b/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs
index 36380236b2d..92fd7faf9a0 100644
--- a/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs
+++ b/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs
@@ -1173,6 +1173,9 @@ namespace System.Xml.Serialization
if (baseMap.IsSimpleType) {
simpleType = baseMap.TypeData;
+ // might not be limited to EnumMap depending on XML serializer design, but for now it is.
+ if (baseMap.ObjectMap is EnumMap)
+ map.BaseMap = baseMap;
} else {
ClassMap baseClassMap = (ClassMap)baseMap.ObjectMap;