Пример #1
0
        public bool Load(string uri)
        {
            cachedElements = new Dictionary <string, ConfigElement>();
            IConfigPropertySourceAdapter <string, string>          propertySourceAdapter = null;
            IConfigNavigationSourceAdapter <string, ConfigElement> elementSourceAdapter  = null;

            ConfigSourceFactory.Load(uri, out propertySourceAdapter, out elementSourceAdapter);

            this.propertiesSource = propertySourceAdapter;
            Elements = new ConfigElements(elementSourceAdapter);

            //Walk structure and build cache



            return(false);
        }
Пример #2
0
 public ConfigElement(IConfigPropertySourceAdapter <string, string> propertySourceAdapter, IConfigNavigationSourceAdapter <string, ConfigElement> elementSourceAdapter)
 {
     this.propertiesSource = propertySourceAdapter;
     Elements = new ConfigElements(elementSourceAdapter);
 }