Пример #1
0
        public override ProjectTemplate Clone()
        {
            ProjectTemplate template = new ProjectTemplate(this);

            if (_sourceFile != null)
            {
                template._sourceFile = String.Copy(_sourceFile);
            }
            if (_version != null)
            {
                template._version = (Version)_version.Clone();
            }
            if (_authoring != null)
            {
                template._authoring = _authoring.Clone();
            }
            if (_configuration != null)
            {
                template._configuration = _configuration.Clone();
            }
            if (_description != null)
            {
                template._description = _description.Clone();
            }
            if (_properties != null)
            {
                template._properties = _properties.Clone();
            }
            if (_assistant != null)
            {
                template._assistant = _assistant.Clone();
            }
            if (_actions != null)
            {
                template._actions = _actions.Clone();
            }
            if (_itemGroups != null)
            {
                template._itemGroups = _itemGroups.Clone();
            }
            if (_propertyGroups != null)
            {
                template._propertyGroups = _propertyGroups.Clone();
            }
            if (_targetFrameworks != null)
            {
                template._targetFrameworks = _targetFrameworks.Clone();
            }
            if (_files != null)
            {
                template._files = _files.Clone();
            }

            return(template);
        }
Пример #2
0
        public override ReferenceFilter Clone()
        {
            ReferenceTypeFilter filter = new ReferenceTypeFilter(this);

            if (_listMembers != null)
            {
                filter._listMembers = _listMembers.Clone();
            }

            return(filter);
        }
        /// <summary>
        /// This creates a new build object that is a deep copy of the current
        /// instance.
        /// </summary>
        /// <returns>
        /// A new build object that is a deep copy of this instance.
        /// </returns>
        public override BuildConfiguration Clone()
        {
            ReferenceXPathConfiguration options = new ReferenceXPathConfiguration(this);

            if (_xpathExpressions != null)
            {
                options._xpathExpressions = _xpathExpressions.Clone();
            }

            return(options);
        }
Пример #4
0
        public override ReferenceFilter Clone()
        {
            ReferenceNamespaceFilter filter = new ReferenceNamespaceFilter(this);

            if (_listTypes != null)
            {
                filter._listTypes = _listTypes.Clone();
            }

            return(filter);
        }
Пример #5
0
        public override KeywordItem Clone()
        {
            KeywordItem resource = new KeywordItem(this);

            if (_listTerms != null)
            {
                resource._listTerms = _listTerms.Clone();
            }

            return(resource);
        }
        /// <summary>
        /// This creates a new build object that is a deep copy of the current
        /// instance.
        /// </summary>
        /// <returns>
        /// A new build object that is a deep copy of this instance.
        /// </returns>
        public override BuildEngineSettings Clone()
        {
            ReferenceEngineSettings settings = new ReferenceEngineSettings(this);

            this.OnClone(settings);
            if (_topicLinks != null && _topicLinks.Count != 0)
            {
                settings._topicLinks = _topicLinks.Clone();
            }

            return(settings);
        }
Пример #7
0
        public override BuildGroupSource Clone()
        {
            ImportGroupSource source = new ImportGroupSource(this);

            this.Clone(source);

            if (_listImports != null)
            {
                source._listImports = _listImports.Clone();
            }

            return(source);
        }
Пример #8
0
        public override DependencyContent Clone()
        {
            DependencyContent content = new DependencyContent(this);

            if (_paths != null)
            {
                content._paths = _paths.Clone();
            }

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

            return(content);
        }
Пример #9
0
        public override MathPackageItem Clone()
        {
            MathPackageItem item = new MathPackageItem(this);

            if (_use != null)
            {
                item._use = String.Copy(_use);
            }
            if (_listOptions != null)
            {
                item._listOptions = _listOptions.Clone();
            }

            return(item);
        }
Пример #10
0
        public override CommentItem Clone()
        {
            CommentItem attrItem = new CommentItem(this);

            if (_name != null)
            {
                attrItem._name = String.Copy(_name);
            }
            if (_listParts != null)
            {
                attrItem._listParts = _listParts.Clone();
            }

            return(attrItem);
        }
Пример #11
0
        public override TemplateItemGroup Clone()
        {
            TemplateItemGroup itemGroup = new TemplateItemGroup(this);

            if (_condition != null)
            {
                itemGroup._condition = String.Copy(_condition);
            }
            if (_items != null)
            {
                itemGroup._items = _items.Clone();
            }

            return(itemGroup);
        }
Пример #12
0
        public override ReferenceSource Clone()
        {
            ReferenceVsNetSource source = new ReferenceVsNetSource(this);

            this.Clone(source);

            if (_targetIdentifier != null)
            {
                source._targetIdentifier = String.Copy(_targetIdentifier);
            }
            if (_listItems != null)
            {
                source._listItems = _listItems.Clone();
            }

            return(source);
        }
Пример #13
0
        public override TemplateDescription Clone()
        {
            TemplateDescription description = new TemplateDescription(this);

            if (_previewImageId != null)
            {
                description._previewImageId = String.Copy(_previewImageId);
            }
            if (_previewImagePath != null)
            {
                description._previewImagePath = String.Copy(_previewImagePath);
            }
            if (_descriptions != null)
            {
                description._descriptions = _descriptions.Clone();
            }

            return(description);
        }
Пример #14
0
        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);
        }
Пример #15
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);
        }
Пример #16
0
        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);
        }
Пример #17
0
        public override FileTemplate Clone()
        {
            FileTemplate template = new FileTemplate(this);

            if (_sourceFile != null)
            {
                template._sourceFile = String.Copy(_sourceFile);
            }
            if (_version != null)
            {
                template._version = (Version)_version.Clone();
            }
            if (_authoring != null)
            {
                template._authoring = _authoring.Clone();
            }
            if (_configuration != null)
            {
                template._configuration = _configuration.Clone();
            }
            if (_description != null)
            {
                template._description = _description.Clone();
            }
            if (_properties != null)
            {
                template._properties = _properties.Clone();
            }
            if (_assistant != null)
            {
                template._assistant = _assistant.Clone();
            }
            if (_files != null)
            {
                template._files = _files.Clone();
            }

            return(template);
        }
Пример #18
0
        public override BuildFormat Clone()
        {
            FormatHxs format = new FormatHxs(this);

            base.Clone(format);

            if (_compilerFile != null)
            {
                format._compilerFile = _compilerFile.Clone();
            }
            if (_compilerDir != null)
            {
                format._compilerDir = _compilerDir.Clone();
            }
            if (_helpTitleId != null)
            {
                format._helpTitleId = String.Copy(_helpTitleId);
            }
            if (_pluginTitle != null)
            {
                format._pluginTitle = String.Copy(_pluginTitle);
            }
            if (_homePage != null)
            {
                format._homePage = String.Copy(_homePage);
            }
            if (_defaultPage != null)
            {
                format._defaultPage = String.Copy(_defaultPage);
            }
            if (_navFailPage != null)
            {
                format._navFailPage = String.Copy(_navFailPage);
            }
            if (_aboutPageInfo != null)
            {
                format._aboutPageInfo = String.Copy(_aboutPageInfo);
            }
            if (_aboutPageIcon != null)
            {
                format._aboutPageIcon = String.Copy(_aboutPageIcon);
            }
            if (_filterEditPage != null)
            {
                format._filterEditPage = String.Copy(_filterEditPage);
            }
            if (_helpPage != null)
            {
                format._helpPage = String.Copy(_helpPage);
            }
            if (_supportPage != null)
            {
                format._supportPage = String.Copy(_supportPage);
            }
            if (_sampleDirPage != null)
            {
                format._sampleDirPage = String.Copy(_sampleDirPage);
            }
            if (_searchHelpPage != null)
            {
                format._searchHelpPage = String.Copy(_searchHelpPage);
            }

            if (_pluginParents != null)
            {
                format._pluginParents = _pluginParents.Clone();
            }
            if (_pluginChildren != null)
            {
                format._pluginChildren = _pluginChildren.Clone();
            }

            return(format);
        }