C# Class NStub.Core.BuildSystem

Abstract base class for a hosting system with infrastructure for filesystem access and other low level functionality.
Inheritance: IBuildSystem
Afficher le fichier Open project: Jedzia/NStub

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
BuildSystem ( ) : System.IO

Initializes a new instance of the BuildSystem class.

Method Details

BuildSystem() protected méthode

Initializes a new instance of the BuildSystem class.
protected BuildSystem ( ) : System.IO
Résultat System.IO

CreateDirectory() public méthode

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

DirectoryExists() public méthode

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

GetFileNameWithoutExtension() public méthode

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.
Résultat string

GetTextWriter() public méthode

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.
Résultat System.IO.TextWriter