Say I have some values in my program's Settings file
ClassLibrary.Properties.Settings.Default.SettingName1
ClassLibrary.Properties.Settings.Default.SettingName2
ClassLibrary.Properties.Settings.Default.SettingName3
and I have a method in which I want to get a Settings value based on some incoming integer value. Is there a way that I can concatenate the incoming integer and the name to make the assignment? I know I can just create a concat string, but is there a way to use that resulting string to get the value from the specified Setting?
In other words, just because I can do thisstring combinedPath = "ClassLibrary.Properties.Settings.Default.SettingName" + (string)intValue;
The combined result is only a string, so I can't do this:
var mySettingsValue = combinedPath;
Is there a way to use that concatenated string to reference the object to which it points?