Esempio n. 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 BuildDocumenter Clone()
        {
            BuildDocumenter documenter = new BuildDocumenter(this);

            if (_settings != null)
            {
                documenter._settings = _settings.Clone();
            }
            if (_listGroups != null)
            {
                documenter._listGroups = _listGroups.Clone();
            }

            return(documenter);
        }