/// <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(); }
/// <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; }