C# Class CodeCake.CakeConsole

Inheritance: IConsole
显示文件 Open project: SimpleGitVersion/CodeCake Class Usage Examples

Public Methods

Method Description
ResetColor ( ) : void

Sets the foreground and background console colors to their defaults.

Write ( string format ) : void

Writes the text representation of the specified array of objects to the console output using the specified format information.

WriteError ( string format ) : void

Writes the text representation of the specified array of objects to the console error output using the specified format information.

WriteErrorLine ( string format ) : void

Writes the text representation of the specified array of objects, followed by the current line terminator, to the console error output using the specified format information.

WriteLine ( string format ) : void

Writes the text representation of the specified array of objects, followed by the current line terminator, to the console output using the specified format information.

Method Details

ResetColor() public method

Sets the foreground and background console colors to their defaults.
public ResetColor ( ) : void
return void

Write() public method

Writes the text representation of the specified array of objects to the console output using the specified format information.
public Write ( string format ) : void
format string A composite format string
return void

WriteError() public method

Writes the text representation of the specified array of objects to the console error output using the specified format information.
public WriteError ( string format ) : void
format string A composite format string
return void

WriteErrorLine() public method

Writes the text representation of the specified array of objects, followed by the current line terminator, to the console error output using the specified format information.
public WriteErrorLine ( string format ) : void
format string A composite format string
return void

WriteLine() public method

Writes the text representation of the specified array of objects, followed by the current line terminator, to the console output using the specified format information.
public WriteLine ( string format ) : void
format string A composite format string
return void