Author: toshok
Date: 2006-01-13 17:31:22 -0500 (Fri, 13 Jan 2006)
New Revision: 55558

Modified:
   
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
   trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog
Log:
2006-01-13  Chris Toshok  <[EMAIL PROTECTED]>

        * AppSettingsSection.cs (GetRuntimeObject): only access
        Settings[key] once per iteration.



Modified: 
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs
===================================================================
--- 
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs 
    2006-01-13 22:22:10 UTC (rev 55557)
+++ 
trunk/mcs/class/System.Configuration/System.Configuration/AppSettingsSection.cs 
    2006-01-13 22:31:22 UTC (rev 55558)
@@ -124,7 +124,8 @@
                        KeyValueInternalCollection col = new 
KeyValueInternalCollection ();
                                
                        foreach (string key in Settings.AllKeys) {
-                               col.Add (Settings[key].Key, 
Settings[key].Value);
+                               KeyValueConfigurationElement ele = 
Settings[key];
+                               col.Add (ele.Key, ele.Value);
                        }
                                
                        col.SetReadOnly ();

Modified: trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog
===================================================================
--- trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog 
2006-01-13 22:22:10 UTC (rev 55557)
+++ trunk/mcs/class/System.Configuration/System.Configuration/ChangeLog 
2006-01-13 22:31:22 UTC (rev 55558)
@@ -1,3 +1,8 @@
+2006-01-13  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * AppSettingsSection.cs (GetRuntimeObject): only access
+       Settings[key] once per iteration.
+
 2006-01-09  Chris Toshok  <[EMAIL PROTECTED]>
 
        * ConfigurationManager.cs (AppSettings): just return

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

Reply via email to