c#: Create new settings at run time

前端 未结 8 807
粉色の甜心
粉色の甜心 2020-12-10 01:44

c# windows forms: How do you create new settings at run time so that they are permanently saved as Settings.Default.-- values?

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-10 02:06

    Since the Settings class is generated at build time (or, actually, whenever you update the settings file from within the designer), you can't use this mechanism for dynamic scenarios. You can, however, add some collection or dictionary to the application settings and modify that dynamically.

提交回复
热议问题