I have added more settings to c# project. i have Settings.settings, Settings1.settings, ... each of those have same value settings of many types.. id - string, point - Point(), size - Size() but different values.
example:
Settings.settings has data:
id = 'first'; string
point = 10@10; Point()
size = 111; 111; Size()
Settings1.settings has data:
id = 'second'; string
point = 20@20; Point()
size = 222; 222; Size()
I choose which settings the program will be using at start (by choosing id of setting from listbox).
I then want to get settings value for selected setting with:
Object myPoint = Config.currentPropertiesAt("point");
/Config class/ -> public static Object currentPropertiesAt(string value)
How can i get that value here from correct Settings?
How can i know what object type it will get returned? That is why i use Object, but this can not be OK.
What is a better way?