What is App.config in C#.NET? How to use it?

前端 未结 6 1970
情深已故
情深已故 2020-11-22 15:00

I have done a project in C#.NET where my database file is an Excel workbook. Since the location of the connection string is hard coded in my coding, there is no problem for

6条回答
  •  迷失自我
    2020-11-22 15:49

    Just adding one more point

    Using app.config some how you can control application access, you want apply particular change to entire application use app config file and you can access the settings like below ConfigurationSettings.AppSettings["Key"]

提交回复
热议问题