CopyTo() public method

Copies to.
public CopyTo ( ConfigurationNode conf ) : void
conf ConfigurationNode The conf.
return void
Example #1
0
 private void HandleConfiguration(ConfigurationNode conf)
 {
     if (String.Compare(conf.Name, "all", true) == 0)            //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 m_Configurations.Values)
         {
             conf.CopyTo(confNode);                    //update the config templates defines at the project level with the overrides
         }
     }
     if (m_Configurations.ContainsKey(conf.NameAndPlatform))
     {
         ConfigurationNode parentConf = m_Configurations[conf.NameAndPlatform];
         conf.CopyTo(parentConf);                //update the config templates defines at the project level with the overrides
     }
     else
     {
         m_Configurations[conf.NameAndPlatform] = conf;
     }
 }
Example #2
0
		private void HandleConfiguration(ConfigurationNode conf)
		{
			if(String.Compare(conf.Name, "all", true) == 0) //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 m_Configurations.Values) 
				{
					conf.CopyTo(confNode);//update the config templates defines at the project level with the overrides
				}
			}
			if(m_Configurations.ContainsKey(conf.NameAndPlatform))
			{
				ConfigurationNode parentConf = m_Configurations[conf.NameAndPlatform];
				conf.CopyTo(parentConf);//update the config templates defines at the project level with the overrides
			} 
			else
			{
				m_Configurations[conf.NameAndPlatform] = conf;
			}
		}