C# Class FdoToolbox.Core.AppFramework.ConsoleColorSwitcher

A helper object to switch the text color of the console. All text written out to the console will be of the specified color until this object is disposed of.
Inheritance: IDisposable
Mostra file Open project: jumpinjackie/fdotoolbox

Public Methods

Method Description
ConsoleColorSwitcher ( ConsoleColor color ) : System

Initializes a new instance of the ConsoleColorSwitcher class.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Method Details

ConsoleColorSwitcher() public method

Initializes a new instance of the ConsoleColorSwitcher class.
public ConsoleColorSwitcher ( ConsoleColor color ) : System
color ConsoleColor The color.
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void