2008-01-16 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Wed, 16 Jan 2008 00:17:22 +0000 (00:17 -0000)
committerZoltan Varga <vargaz@gmail.com>
Wed, 16 Jan 2008 00:17:22 +0000 (00:17 -0000)
* PropertyInformation.cs: Allow non-public constructors. Fixes #353557.

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

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

index e0d5d19422c2a2dca5ddb32b01f7960bc2e53855..947697ea5c297d7dee57852a57ed9cd7476e7768 100644 (file)
@@ -1,5 +1,7 @@
 2008-01-16  Zoltan Varga  <vargaz@gmail.com>
 
+       * PropertyInformation.cs: Allow non-public constructors. Fixes #353557.
+
        * ConfigurationElement.cs: Consider non-public properties as well. Fixes
        #353553.
 
index 839d4d7e0d41f69af821d2b1d9eee03c671ce5b0..9d5662712ad43512cf778ba1b32dac945dde0d04 100644 (file)
@@ -107,7 +107,7 @@ namespace System.Configuration
                        get {
                                if (origin == PropertyValueOrigin.Default) {
                                        if (property.IsElement) {
-                                               ConfigurationElement elem = (ConfigurationElement) Activator.CreateInstance (Type);
+                                               ConfigurationElement elem = (ConfigurationElement) Activator.CreateInstance (Type, true);
                                                elem.InitFromProperty (this);
                                                if (owner != null && owner.IsReadOnly ())
                                                        elem.SetReadOnly ();