Ignore:
Timestamp:
3/13/2012 9:30:08 AM (2 years ago)
Author:
lowjoel
Message:

Make the Eraser Settings class a singleton. At the same time, implement a lot of reflection wizardry to make lists and dictionaries a REG_MULTI_SZ and a Registry Key respectively. Caveat is that when retrieving lists and dictionaries, interfaces must be provided. If discrete types are provided, the RegistrySettings? class will fall back to serialisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.Manager/Settings.cs

    r2472 r2483  
    7070            get 
    7171            { 
    72                 return Store.GetValue("ApprovedPlugins", new Dictionary<Guid, bool>()); 
     72                return Store.GetValue<IDictionary<Guid, bool>>("ApprovedPlugins"); 
    7373            } 
    7474        } 
Note: See TracChangeset for help on using the changeset viewer.