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

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

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

index 947697ea5c297d7dee57852a57ed9cd7476e7768..a85c83c2e905a659dc7a9c966fdde4ac8b5f9f70 100644 (file)
@@ -1,5 +1,7 @@
 2008-01-16  Zoltan Varga  <vargaz@gmail.com>
 
+       * ConfigurationElement.cs: Allow non-public constructors. Fixes #353554.
+
        * PropertyInformation.cs: Allow non-public constructors. Fixes #353557.
 
        * ConfigurationElement.cs: Consider non-public properties as well. Fixes
index 4a10251075533ab06f1d4ba91926cbf8a9f09479..afd9d1811c771349f6da23634cd304aa8443264d 100644 (file)
@@ -612,7 +612,7 @@ namespace System.Configuration
                                ConfigurationValidatorBase validator = validatorAttr != null ? validatorAttr.ValidatorInstance : null;
 
                                TypeConverterAttribute convertAttr = (TypeConverterAttribute) Attribute.GetCustomAttribute (prop, typeof (TypeConverterAttribute));
-                               TypeConverter converter = convertAttr != null ? (TypeConverter) Activator.CreateInstance (Type.GetType (convertAttr.ConverterTypeName)) : null;
+                               TypeConverter converter = convertAttr != null ? (TypeConverter) Activator.CreateInstance (Type.GetType (convertAttr.ConverterTypeName), true) : null;
                                ConfigurationProperty cp = new ConfigurationProperty (name, prop.PropertyType, at.DefaultValue, converter, validator, at.Options);
 
                                cp.CollectionAttribute = Attribute.GetCustomAttribute (prop, typeof(ConfigurationCollectionAttribute)) as ConfigurationCollectionAttribute;