public BuildTocContext Clone() { BuildTocContext content = new BuildTocContext(this); if (_properties != null) { content._properties = _properties.Clone(); } if (_listItems != null) { content._listItems = _listItems.Clone(); } if (_relatedTopics != null) { content._relatedTopics = _relatedTopics.Clone(); } return(content); }
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(); } }