C# Class NStub.Core.BuildSystem

Abstract base class for a hosting system with infrastructure for filesystem access and other low level functionality.
Inheritance: IBuildSystem
显示文件 Open project: Jedzia/NStub

Public Methods

Method Description
CreateDirectory ( string path ) : DirectoryInfo

Creates all directories and subdirectories as specified by path.

DirectoryExists ( string directory ) : bool

Determines whether the given path refers to an existing directory on disk.

GetFileNameWithoutExtension ( string path ) : string

Returns the file name of the specified path string without the extension.

GetTextWriter ( string path, bool append ) : TextWriter

Returns a writer that stores text in the specified path.

Protected Methods

Method Description
BuildSystem ( ) : System.IO

Initializes a new instance of the BuildSystem class.

Method Details

BuildSystem() protected method

Initializes a new instance of the BuildSystem class.
protected BuildSystem ( ) : System.IO
return System.IO

CreateDirectory() public method

Creates all directories and subdirectories as specified by path.
public CreateDirectory ( string path ) : DirectoryInfo
path string The directory path to create.
return System.IO.DirectoryInfo

DirectoryExists() public method

Determines whether the given path refers to an existing directory on disk.
public DirectoryExists ( string directory ) : bool
directory string The path to test.
return bool

GetFileNameWithoutExtension() public method

Returns the file name of the specified path string without the extension.
path contains one or more of the invalid characters defined in System.IO.Path.GetInvalidPathChars().
public GetFileNameWithoutExtension ( string path ) : string
path string The path of the file.
return string

GetTextWriter() public method

Returns a writer that stores text in the specified path.
public GetTextWriter ( string path, bool append ) : TextWriter
path string The filename to write data to.
append bool if set to true appends the file.
return System.IO.TextWriter