Author: mhabersack
Date: 2007-12-07 18:54:56 -0500 (Fri, 07 Dec 2007)
New Revision: 90974
Modified:
trunk/mcs/class/System.Web/System.Web.Util/SettingsMappingManager.cs
Log:
don't add the same section twice to the dictionary
Modified: trunk/mcs/class/System.Web/System.Web.Util/SettingsMappingManager.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Util/SettingsMappingManager.cs
2007-12-07 23:47:54 UTC (rev 90973)
+++ trunk/mcs/class/System.Web/System.Web.Util/SettingsMappingManager.cs
2007-12-07 23:54:56 UTC (rev 90974)
@@ -136,7 +136,7 @@
return mappedSection;
object ret = _instance.MapSection (input, input.GetType
());
- if (ret != null)
+ if (ret != null && !_mappedSections.ContainsKey (ret))
_mappedSections.Add (ret, ret);
return ret;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches