Author: toshok
Date: 2006-04-25 18:44:33 -0400 (Tue, 25 Apr 2006)
New Revision: 59883

Modified:
   trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog
   
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs
Log:
2006-04-25  Chris Toshok  <[EMAIL PROTECTED]>

        * ConfigurationElementCollection.cs (Reset): it makes no sense to
        pass the typename to CreateNewElementInternal.  the argument is
        the elementname. pass null instead.
        (Unmerge): same.



Modified: trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog
===================================================================
--- trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog 
2006-04-25 22:20:40 UTC (rev 59882)
+++ trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog 
2006-04-25 22:44:33 UTC (rev 59883)
@@ -1,3 +1,10 @@
+2006-04-25  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * ConfigurationElementCollection.cs (Reset): it makes no sense to
+       pass the typename to CreateNewElementInternal.  the argument is
+       the elementname. pass null instead.
+       (Unmerge): same.
+
 2006-02-01  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * ConfigurationElement.cs : ListErrors() and SetPropertyValue()

Modified: 
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs
===================================================================
--- 
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs
 2006-04-25 22:20:40 UTC (rev 59882)
+++ 
trunk/mcs/class/System.Configuration/System.Configuration/ConfigurationElementCollection.cs
 2006-04-25 22:44:33 UTC (rev 59883)
@@ -372,7 +372,7 @@
                        for (int n=0; n<parent.Count; n++)
                        {
                                ConfigurationElement parentItem = 
parent.BaseGet (n);
-                               ConfigurationElement item = 
CreateNewElementInternal (parentItem.GetType().FullName);
+                               ConfigurationElement item = 
CreateNewElementInternal (null);
                                item.Reset (parentItem);
                                BaseAdd (item);
                                
@@ -503,13 +503,13 @@
                                object key = source.GetElementKey (sitem);
                                ConfigurationElement pitem = parent != null ? 
parent.BaseGet (key) as ConfigurationElement : null;
                                if (pitem != null && updateMode != 
ConfigurationSaveMode.Full) {
-                                       ConfigurationElement nitem = 
CreateNewElementInternal (pitem.GetType().FullName);
+                                       ConfigurationElement nitem = 
CreateNewElementInternal (null);
                                        nitem.Unmerge (sitem, pitem, 
ConfigurationSaveMode.Minimal);
                                        if (nitem.HasValues ())
                                                BaseAdd (nitem);
                                }
                                else {
-                                       ConfigurationElement nitem = 
CreateNewElementInternal (sitem.GetType().FullName);
+                                       ConfigurationElement nitem = 
CreateNewElementInternal (null);
                                        nitem.Unmerge (sitem, null, 
ConfigurationSaveMode.Full);
                                        BaseAdd (nitem);
                                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to