/// <summary> /// Initializes a new instance of the <see cref="ReferenceImportSource"/> class /// with parameters copied from the specified instance of the /// <see cref="ReferenceImportSource"/> class, a copy constructor. /// </summary> /// <param name="source"> /// An instance of the <see cref="ReferenceImportSource"/> class from which the /// initialization parameters or values will be copied. /// </param> /// <exception cref="ArgumentNullException"> /// If the parameter <paramref name="source"/> is <see langword="null"/>. /// </exception> public ReferenceImportSource(ReferenceImportSource source) : base(source) { _sourcePath = source._sourcePath; _overrideFilters = source._overrideFilters; _overrideComments = source._overrideComments; _overrideHierarchicalToc = source._overrideHierarchicalToc; }
public override ReferenceSource Clone() { ReferenceImportSource source = new ReferenceImportSource(this); this.Clone(source); if (_sourcePath != null) { source._sourcePath = _sourcePath.Clone(); } return(source); }