Example #1
0
        /// <summary>
        /// Copies all instance data of the <see cref="FileSet" /> to a given
        /// <see cref="FileSet" />.
        /// </summary>
        protected void CopyTo(GetFileSet clone)
        {
            base.CopyTo(clone);

            clone._hasScanned = _hasScanned;
            clone._scanner = (RemoteDirectoryScanner) _scanner.Clone();
        }
Example #2
0
 /// <summary>
 /// Creates a shallow copy of the <see cref="FileSet" />.
 /// </summary>
 /// <returns>
 /// A shallow copy of the <see cref="FileSet" />.
 /// </returns>
 public override object Clone()
 {
     GetFileSet clone = new GetFileSet();
     CopyTo(clone);
     return clone;
 }