Get dynamic property from Settings

前端 未结 4 953
闹比i
闹比i 2021-01-04 21:01

I\'ve got a few properties stored in my AppConfig and now I want to access them dynamically (e.g. in a loop or function).

Accessing the values using MySettings.NAME_

4条回答
  •  感情败类
    2021-01-04 21:58

    answer to the orginal poster question would be like: MySettings[NAME_OF_THAT_THINGmysettings] does the job like previous post

    however for those people looking for answer to using the builtin settings in their windows app: myAppDefaultNameSpace.Properties.Settings.Default[NAME_OF_THAT_THINGmysettings] is the way to go

提交回复
热议问题