Normally, I can save settings like this:
Properties.Settings.Default.DarkTheme = true;
But how can I use variable as the name?
For example:
string varname = "DarkTheme";
Properties.Settings.Default.{varname} = true; //This is supposed to do the same thing as the codeblock above