C# Class Qowaiv.UnitTests.IO.TemporaryDirectory

Represents a directory that lives during the lifetime of its scope.
Should always been used with a using statement. using(var directory = new TemporaryDirectory() { // Do stuff. }
Inheritance: IDisposable
Afficher le fichier Open project: Corniel/Qowaiv Class Usage Examples

Méthodes publiques

Méthode Description
CreateFile ( string fileName ) : FileInfo

Creates a file in the temporary directory.

Dispose ( ) : void

Disposes the temporary directory by deleting it and its content.

TemporaryDirectory ( ) : System

Creates a temporary directory.

ToString ( ) : string

Represents the temporary directory as string.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

CreateFile() public méthode

Creates a file in the temporary directory.
public CreateFile ( string fileName ) : FileInfo
fileName string
Résultat System.IO.FileInfo

Dispose() public méthode

Disposes the temporary directory by deleting it and its content.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

TemporaryDirectory() public méthode

Creates a temporary directory.
public TemporaryDirectory ( ) : System
Résultat System

ToString() public méthode

Represents the temporary directory as string.
public ToString ( ) : string
Résultat string