Пример #1
0
        public JsonConfiguration(string path)
        {
            if (path == null)
            {
                throw new ArgumentNullException("path");
            }

            SettingChangedEventManager = new SettingChangedWeakEventManager(this);
            context   = new JsonContext();
            values    = new Dictionary <string, object>();
            this.path = path;

            // NB. List<T> is handled specially.
            // Perhaps Nullable<T> should be handled specially too, but there is already
            // a defaulting mechanism in Configuration anyway.

            Load();
        }
Пример #2
0
 public NullConfiguration()
 {
     SettingChangedEventManager = new SettingChangedWeakEventManager(this);
 }