public object Clone()
        {
            ConfigurationNode ret = new ConfigurationNode();

            ret.m_Name = m_Name;
            m_Options.CopyTo(ret.m_Options);
            return(ret);
        }
Ejemplo n.º 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;
     }
 }
 public void CopyTo(ConfigurationNode conf)
 {
     m_Options.CopyTo(conf.m_Options);
 }
 public object Clone()
 {
     ConfigurationNode ret = new ConfigurationNode();
     ret.m_Name = m_Name;
     m_Options.CopyTo(ret.m_Options);
     return ret;
 }
 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;
 }
 public void CopyTo(ConfigurationNode conf)
 {
     m_Options.CopyTo(conf.m_Options);
 }