Sunday, June 30, 2013

MultiValues User Settings creation and use.

This is often asked. The best answer I can give is: Forget creating that UserSetting at runtime.


If you need one value of that type, just create it in the settings.


If you need a not precisely know amount of settings of this type, just add a single List<v_strct> to the UserSettings and modify the contents of that list.

If you insist on string indexing, use a Dictionary<String, v_strct>;


It is faster, no headache, and you can go over it with a for or foreach loop if you ever need to find a specific isntance.




Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2


No comments:

Post a Comment