how bucket behind boldly combined settingsproperty unbroken time?


i combined proceed boldly supplement settingsproperty .net app.config file. works nicely, nonetheless i am rising app unbroken i wholly properties combined designer. i bucket behind properties runtime?



my formula formulating settingsproperty looks following:



internal vacant createproperty<t>(string propertyname)
{
twine providername = "localfilesettingsprovider";
system.configuration.settingsattributedictionary attributes = new settingsattributedictionary();
system.configuration.userscopedsettingattribute attr = new userscopedsettingattribute();

attributes.add(attr.typeid, attr);

system.configuration.settingsproperty prop;
settingsprovider provider = applicationenvironment.globalsettings.providers[providername];

buttress = new system.configuration.settingsproperty(
propertyname,
typeof(t),
provider,
false,
default(t),
system.configuration.settingsserializeas.string,
attributes,
false,
false
);

applicationenvironment.globalsettings.properties.add(prop);
applicationenvironment.globalsettings.reload();
}


when unbroken run i ask settings ability i any properties combined previosuly. matter i applicationenvironment.globalsettings.reload(); not.



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members