コード例 #1
0
        public object Clone()
        {
            ConfigurationNode ret = new ConfigurationNode();

            ret.m_Name = m_Name;
            m_Options.CopyTo(ret.m_Options);
            return(ret);
        }
コード例 #2
0
 private void HandleConfiguration(ConfigurationNode conf)
 {
     if (conf.Name.ToLower() == "all")            //apply changes to all, this may not always be applied first,
     //so it *may* override changes to the same properties for configurations defines at the project level
     {
         foreach (ConfigurationNode confNode in this.m_Configurations.Values)
         {
             conf.CopyTo(confNode);                    //update the config templates defines at the project level with the overrides
         }
     }
     if (m_Configurations.ContainsKey(conf.Name))
     {
         ConfigurationNode parentConf = (ConfigurationNode)m_Configurations[conf.Name];
         conf.CopyTo(parentConf);                //update the config templates defines at the project level with the overrides
     }
     else
     {
         m_Configurations[conf.Name] = conf;
     }
 }
コード例 #3
0
 public void CopyTo(ConfigurationNode conf)
 {
     m_Options.CopyTo(conf.m_Options);
 }
コード例 #4
0
 public object Clone()
 {
     ConfigurationNode ret = new ConfigurationNode();
     ret.m_Name = m_Name;
     m_Options.CopyTo(ret.m_Options);
     return ret;
 }
コード例 #5
0
 private void HandleConfiguration(ConfigurationNode conf)
 {
     if(conf.Name.ToLower() == "all") //apply changes to all, this may not always be applied first,
         //so it *may* override changes to the same properties for configurations defines at the project level
     {
         foreach(ConfigurationNode confNode in this.m_Configurations.Values)
         {
             conf.CopyTo(confNode);//update the config templates defines at the project level with the overrides
         }
     }
     if(m_Configurations.ContainsKey(conf.Name))
     {
         ConfigurationNode parentConf = (ConfigurationNode)m_Configurations[conf.Name];
         conf.CopyTo(parentConf);//update the config templates defines at the project level with the overrides
     }
     else
         m_Configurations[conf.Name] = conf;
 }
コード例 #6
0
 public void CopyTo(ConfigurationNode conf)
 {
     m_Options.CopyTo(conf.m_Options);
 }