string source;
object val;
PropertyValueOrigin origin;
- ConfigurationElement owner;
-
- ConfigurationProperty property;
+ readonly ConfigurationElement owner;
+ readonly ConfigurationProperty property;
internal PropertyInformation (ConfigurationElement owner, ConfigurationProperty property)
{
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 ();