X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Configuration%2FSystem.Configuration%2FPropertyInformation.cs;h=9d5662712ad43512cf778ba1b32dac945dde0d04;hb=e497bb1b59c80256eac3c3e2f0608b1400098e0a;hp=823945045d5ab5a30890d192d4fcce84f5b800bb;hpb=1c14f1ee6d701510c15499d71fc2b324151a8629;p=mono.git diff --git a/mcs/class/System.Configuration/System.Configuration/PropertyInformation.cs b/mcs/class/System.Configuration/System.Configuration/PropertyInformation.cs index 823945045d5..9d5662712ad 100644 --- a/mcs/class/System.Configuration/System.Configuration/PropertyInformation.cs +++ b/mcs/class/System.Configuration/System.Configuration/PropertyInformation.cs @@ -39,9 +39,8 @@ namespace System.Configuration string source; object val; PropertyValueOrigin origin; - ConfigurationElement owner; - - ConfigurationProperty property; + readonly ConfigurationElement owner; + readonly ConfigurationProperty property; internal PropertyInformation (ConfigurationElement owner, ConfigurationProperty property) { @@ -108,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 ();