Example #1
0
        /// <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 ReferenceVersionInfo Clone()
        {
            ReferenceVersionInfo versionInfo = new ReferenceVersionInfo(this);

            if (_listSources != null)
            {
                versionInfo._listSources = _listSources.Clone();
            }
            if (_listRelated != null)
            {
                versionInfo._listRelated = _listRelated.Clone();
            }

            if (_versionId != null)
            {
                versionInfo._versionId = String.Copy(_versionId);
            }
            if (_versionLabel != null)
            {
                versionInfo._versionLabel = String.Copy(_versionLabel);
            }
            if (_platformId != null)
            {
                versionInfo._platformId = String.Copy(_platformId);
            }
            if (_platformTitle != null)
            {
                versionInfo._platformTitle = String.Copy(_platformTitle);
            }

            return(versionInfo);
        }
Example #2
0
        public override ConceptualItem Clone()
        {
            ConceptualHtmlTopic item = new ConceptualHtmlTopic(this);

            if (_listItems != null)
            {
                item._listItems = _listItems.Clone();
            }

            return(item);
        }
Example #3
0
        /// <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 ReferenceVersionRelated Clone()
        {
            ReferenceVersionRelated related = new ReferenceVersionRelated(this);

            if (_listSources != null)
            {
                related._listSources = _listSources.Clone();
            }

            return(related);
        }
        public override ConceptualContent Clone()
        {
            ConceptualContent content = new ConceptualContent(this);

            this.Clone(content, new BuildKeyedList <ConceptualItem>());

            if (_contentId != null)
            {
                content._contentId = String.Copy(_contentId);
            }
            if (_defaultTopic != null)
            {
                content._defaultTopic = String.Copy(_defaultTopic);
            }

            if (_contentVersion != null)
            {
                content._contentVersion = (Version)_contentVersion.Clone();
            }
            if (_contentFile != null)
            {
                content._contentFile = _contentFile.Clone();
            }
            if (_contentDir != null)
            {
                content._contentDir = _contentDir.Clone();
            }
            if (_categories != null)
            {
                content._categories = _categories.Clone();
            }
            if (_listFilters != null)
            {
                content._listFilters = _listFilters.Clone();
            }
            if (_relatedTopics != null)
            {
                content._relatedTopics = _relatedTopics.Clone();
            }

            return(content);
        }
Example #5
0
        public override SnippetContent Clone()
        {
            SnippetContent content = new SnippetContent(this);

            if (_name != null)
            {
                content._name = String.Copy(_name);
            }
            if (_excludedUnitFolders != null)
            {
                content._excludedUnitFolders = _excludedUnitFolders.Clone();
            }
            if (_languages != null)
            {
                content._languages = _languages.Clone();
            }

            this.Clone(content);

            return(content);
        }