public override ReferenceContent Clone() { ReferenceContent content = new ReferenceContent(this); this.Clone(content); if (_contentId != null) { content._contentId = String.Copy(_contentId); } if (_contentVersion != null) { content._contentVersion = (Version)_contentVersion.Clone(); } if (_contentFile != null) { content._contentFile = _contentFile.Clone(); } if (_contentDir != null) { content._contentDir = _contentDir.Clone(); } if (_commentContent != null) { content._commentContent = _commentContent.Clone(); } if (_dependencies != null) { content._dependencies = _dependencies.Clone(); } if (_tocContent != null) { content._tocContent = _tocContent.Clone(); } if (_typeFilters != null) { content._typeFilters = (ReferenceRootFilter)_typeFilters.Clone(); } if (_attributeFilters != null) { content._attributeFilters = (ReferenceRootFilter)_attributeFilters.Clone(); } return(content); }
public override ReferenceSource Clone() { ReferenceLinkSource source = new ReferenceLinkSource(this); this.Clone(source); if (_sourceId != null) { source._sourceId = String.Copy(_sourceId); } if (_listItems != null) { source._listItems = _listItems.Clone(); } if (_dependencies != null) { source._dependencies = _dependencies.Clone(); } return(source); }