2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 4 Oct 2008 16:42:47 +0000 (16:42 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Sat, 4 Oct 2008 16:42:47 +0000 (16:42 -0000)
* ApplicationSettingsBase.cs: honor the IsSynchronized value in the
indexer.

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

mcs/class/System/System.Configuration/ApplicationSettingsBase.cs
mcs/class/System/System.Configuration/ChangeLog

index 87b75d46e02423c1ca01d391d195f8949c8192e0..20608b0391ef41a400e4bdee2b1d2386a3887470 100644 (file)
@@ -205,6 +205,12 @@ namespace System.Configuration {
                [MonoTODO]
                public override object this [ string propertyName ] {
                        get {
+                               if (IsSynchronized) {
+                                       lock (this) {
+                                               return GetPropertyValue (propertyName);
+                                       }
+                               }
+
                                return GetPropertyValue (propertyName);
                        }
                        set {
index 00e2f167d99ff7ccba9764e3f338e27af12650cd..be65459860ab61e2090919e88cf3d261eae209ba 100644 (file)
@@ -1,3 +1,8 @@
+2008-10-04 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * ApplicationSettingsBase.cs: honor the IsSynchronized value in the
+       indexer.
+
 2008-09-15  Raja R Harinath  <harinath@hurrynot.org>
 
        * ConfigXmlDocument.cs (Load): Fix build break in 1.1 profile.