C# Class NAnt.Core.Types.FileSet

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

Private Properties

Property Type Description
AddPatternSet void
Find string

Public Methods

Method Description
Clone ( ) : object

Creates a shallow copy of the FileSet.

FileSet ( ) : System

Initializes a new instance of the FileSet class.

FileSet ( FileSet fs ) : System

copy constructor

FindMoreRecentLastWriteTime ( StringCollection fileNames, System.DateTime targetLastWriteTime ) : string

Determines if one of the given files has a more recent last write time than the given time. If one of the given files no longer exists, the target will be considered out-of-date.

FindMoreRecentLastWriteTime ( string fileName, System.DateTime targetLastWriteTime ) : string

Determines if a file has a more recent last write time than the given time, or no longer exists.

Reset ( ) : void
Scan ( ) : void
ToString ( ) : string

Protected Methods

Method Description
CopyTo ( FileSet clone ) : void

Copies all instance data of the FileSet to a given FileSet.

Initialize ( ) : void

Private Methods

Method Description
AddPatternSet ( PatternSet patternSet ) : void
Find ( string fileName ) : string

Method Details

Clone() public method

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

CopyTo() protected method

Copies all instance data of the FileSet to a given FileSet.
protected CopyTo ( FileSet clone ) : void
clone FileSet
return void

FileSet() public method

Initializes a new instance of the FileSet class.
public FileSet ( ) : System
return System

FileSet() public method

copy constructor
public FileSet ( FileSet fs ) : System
fs FileSet
return System

FindMoreRecentLastWriteTime() public static method

Determines if one of the given files has a more recent last write time than the given time. If one of the given files no longer exists, the target will be considered out-of-date.
public static FindMoreRecentLastWriteTime ( StringCollection fileNames, System.DateTime targetLastWriteTime ) : string
fileNames System.Collections.Specialized.StringCollection A collection of filenames to check the last write time against.
targetLastWriteTime System.DateTime The datetime to compare against.
return string

FindMoreRecentLastWriteTime() public static method

Determines if a file has a more recent last write time than the given time, or no longer exists.
public static FindMoreRecentLastWriteTime ( string fileName, System.DateTime targetLastWriteTime ) : string
fileName string A file to check the last write time against.
targetLastWriteTime System.DateTime The datetime to compare against.
return string

Initialize() protected method

protected Initialize ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

Scan() public method

public Scan ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string