Get Variable from one Config directly to another Config

1

A doubt. Is it possible to get the value of a variable from a config directly inside the other config? Example possible below.

Config1.config:

<add key="webservice" value="http.teste.com" />

Config2.config:

<add key="webservice" value="Config1.config:key("webservice").value" />

They are C # WinForms configs

    
asked by anonymous 18.10.2016 / 19:34

1 answer

2

Can not do this. The values in the configuration files are static, so that if you have a Web application and edit the Web.config, the application will restart to "catch" the new values, unless you specify restartOnExternalChanges="false" . >     

18.10.2016 / 19:45