C# Class NAnt.Core.PathScanner

Inheritance: ICloneable
Show file Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
Add ( string fileName ) : void

Adds a file to the list of files to be scanned for.

Clear ( ) : void
Clone ( ) : PathScanner

Creates a shallow copy of the PathScanner.

Scan ( ) : StringCollection

Scans all direcetories in the PATH environment variable for files.

Scan ( string name ) : StringCollection

Scans all directories in the given environment variable for files.

Private Methods

Method Description
Clone ( StringCollection stringCollection ) : StringCollection

Creates a shallow copy of the specified StringCollection.

ICloneable ( ) : object

Creates a shallow copy of the PathScanner.

Method Details

Add() public method

Adds a file to the list of files to be scanned for.
public Add ( string fileName ) : void
fileName string The filename or search pattern to add to the list.
return void

Clear() public method

public Clear ( ) : void
return void

Clone() public method

Creates a shallow copy of the PathScanner.
public Clone ( ) : PathScanner
return PathScanner

Scan() public method

Scans all direcetories in the PATH environment variable for files.
public Scan ( ) : StringCollection
return System.Collections.Specialized.StringCollection

Scan() public method

Scans all directories in the given environment variable for files.
public Scan ( string name ) : StringCollection
name string The environment variable of which the directories should be scanned.
return System.Collections.Specialized.StringCollection