Ejemplo n.º 1
0
        public override IncludeContentList Clone()
        {
            IncludeContentList config = new IncludeContentList(this);

            if (_default != null)
            {
                config._default = _default.Clone();
            }
            if (_conceptual != null)
            {
                config._conceptual = _conceptual.Clone();
            }
            if (_references != null)
            {
                config._references = _references.Clone();
            }

            return(config);
        }
Ejemplo n.º 2
0
 protected virtual void OnClone(BuildEngineSettings settings)
 {
     if (_engineName != null)
     {
         settings._engineName = String.Copy(_engineName);
     }
     if (_properties != null)
     {
         settings._properties = _properties.Clone();
     }
     if (_sharedContent != null)
     {
         settings._sharedContent = _sharedContent.Clone();
     }
     if (_includeContent != null)
     {
         settings._includeContent = _includeContent.Clone();
     }
     if (_configurations != null)
     {
         settings._configurations = (BuildConfigurationList)_configurations.Clone();
     }
     if (_pluginConfigurations != null)
     {
         settings._pluginConfigurations = (BuildConfigurationList)_pluginConfigurations.Clone();
     }
     if (_componentConfigurations != null)
     {
         settings._componentConfigurations =
             (BuildComponentConfigurationList)_componentConfigurations.Clone();
     }
     if (_pluginComponentConfigurations != null)
     {
         settings._pluginComponentConfigurations =
             (BuildComponentConfigurationList)_pluginComponentConfigurations.Clone();
     }
 }