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
Mostra file Open project: Corniel/Qowaiv Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

CreateFile() public method

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

Dispose() public method

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

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

TemporaryDirectory() public method

Creates a temporary directory.
public TemporaryDirectory ( ) : System
return System

ToString() public method

Represents the temporary directory as string.
public ToString ( ) : string
return string