Browse Source

* ReflectionHelper.cs: Fixed bug when registering a map as exported.
Thanks to Juan C. Olivares.

svn path=/trunk/mcs/; revision=31033

Lluis Sanchez 21 years ago
parent
commit
fd0fcfd2bc

+ 5 - 0
mcs/class/System.XML/System.Xml.Serialization/ChangeLog

@@ -1,3 +1,8 @@
+2004-07-12  Lluis Sanchez Gual  <[email protected]>
+
+	* ReflectionHelper.cs: Fixed bug when registering a map as exported.
+	  Thanks to Juan C. Olivares.
+
 2004-07-10  Lluis Sanchez Gual  <[email protected]>
 
 	* CodeExporter.cs: Added private constructor.

+ 1 - 1
mcs/class/System.XML/System.Xml.Serialization/ReflectionHelper.cs

@@ -41,7 +41,7 @@ namespace System.Xml.Serialization
 		public void RegisterSchemaType (XmlTypeMapping map, string xmlType, string ns)
 		{
 			string mapKey = xmlType + "/" + ns;
-			if (!_schemaTypes.ContainsKey (xmlType))
+			if (!_schemaTypes.ContainsKey (mapKey))
 				_schemaTypes.Add (mapKey, map);
 		}