I have about 10 methods in my class. In every method I use ConfigurationManager.AppSettings to get value form App.config file
ConfigurationManager.AppSettings
like
_a
You could do something like this
var fileConfig = ConfigurationManager.OpenExeConfiguration(""); int port = int.Parse(fileConfig.AppSettings["PortNumber"].ToString());