sub appsettings in the appsetting node c#

前端 未结 2 411
栀梦
栀梦 2020-12-23 16:41

I am using the app.config file that is created with a console application and I can read the val1 of the key1 using the ConfigurationSettings.AppSettings[\"key1\"].ToS

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-23 17:19

    AFAIK you can implement a custom section outside of the appsettings. For example, frameworks like Autofac and SpecFlow use these kind of sessions to support their own configuration schema. You can take a look on this MSDN article to understand how to do that. Hope that helps.

提交回复
热议问题