forum

home / developersection / forums / using values from appconfig file in c#

Using values from AppConfig file in C#

Samuel Fernandes 2398 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