标签: c# wpf xaml
通常,我可以保存这样的设置:
Properties.Settings.Default.DarkTheme = true;
但是如何使用变量作为名称?
例如:
string varname = "DarkTheme"; Properties.Settings.Default.{varname} = true; //This is supposed to do the same thing as the codeblock above