Monday, December 10, 2012

get appSettings variable from app.config in a Console application

string whatever = (string)System.Configuration.ConfigurationManager.AppSettings["whatever"];

...is newer than...

string whatever = (string)System.Configuration.ConfigurationSettings.AppSettings["whatever"];

No comments:

Post a Comment