Beispiel #1
0
 public ConfigurationFile(ConfigurationFile parent)
 {
     this.results             = new Hashtable();
     this.parent              = parent;
     this.unevaluatedSections = new Hashtable();
 }
        private void LoadMetaConfiguration(string configurationFile)
        {
            configFile = new ConfigurationFile();
            string machineFilename = MachineConfigurationFile;
            // make sure we don't load the machine file twice
            if (string.Compare(configurationFile, machineFilename, true, CultureInfo.InvariantCulture) != 0)
            {
                ConfigurationFile machineConfigFile = new ConfigurationFile();
                bool machineFileExists = machineConfigFile.Load(machineFilename);
                if (machineFileExists)
                {
                    configFile = new ConfigurationFile(machineConfigFile);
                }
            }

            configFile.Load(configurationFile);

            CreateMetaConfigChangeWatcher();

            this.currentConfigFileName = configurationFile;
            InitializeConfiguration(ReadMetaConfiguration());
        }
Beispiel #3
0
 public ConfigurationFile(ConfigurationFile parent)
 {
     this.results = new Hashtable();
     this.parent = parent;
     this.unevaluatedSections = new Hashtable();
 }