Users Pricing

forum

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

Using values from AppConfig file in C#

Samuel Fernandes 2521 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()


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md