c# - How to get common library to read App.config of current executable -


i have common library , 2 executables. each executable refers common library functionality. common library read app.config of exe running.

is there specific api calls this?

you may take @ configurationmanager class:

var somevalue = configurationmanager.appsettings["somekey"]; 

would read appsettings section of app.config/web.config of executing process.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -