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

前端 未结 6 1858
情深已故
情深已故 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:52

    App.Config is an XML file that is used as a configuration file for your application. In other words, you store inside it any setting that you may want to change without having to change code (and recompiling). It is often used to store connection strings.

    See this MSDN article on how to do that.

提交回复
热议问题