/// <summary> /// This creates a new directory copier object that is a deep copy of the /// current instance. /// </summary> /// <returns> /// A new directory copier object that is a deep copy of this instance. /// </returns> /// <remarks> /// This is deep cloning of the members of this directory copier object. /// If you need just a copy, use the copy constructor to create a new /// instance. /// </remarks> public override BuildDocumenter Clone() { BuildDocumenter documenter = new BuildDocumenter(this); if (_settings != null) { documenter._settings = _settings.Clone(); } if (_listGroups != null) { documenter._listGroups = _listGroups.Clone(); } return(documenter); }
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); }