forum

Home / DeveloperSection / Forums / Using values from AppConfig file in C#

Using values from AppConfig file in C#

Samuel Fernandes 2078 28-Jan-2014

selenium = new DefaultSelenium(

    ConfigurationManager.AppSettings["TestMachine"].ToString(),

    4444,      

    ConfigurationManager.AppSettings["Browser"].ToString(),       

    ConfigurationManager.AppSettings["URL"].ToString()

);

Is there an efficient way to do this, instead of repeating:

ConfigurationManager.AppSettings[""].ToString()


c# c# 
Updated on 29-Jan-2014

Can you answer this question?


Answer

1 Answers

Liked By