C# Class SonarQube.Common.ConsoleColorScope

Utility class that changes the console text color for the lifetime of the instance
This will have no effect if the console output streams have been re-directed
Inheritance: IDisposable
Mostra file Open project: SonarSource-VisualStudio/sonarqube-roslyn-sdk

Public Methods

Method Description
ConsoleColorScope ( ConsoleColor textColor ) : System
Dispose ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
SetColors ( ConsoleColor foreground, ConsoleColor background ) : void

Method Details

ConsoleColorScope() public method

public ConsoleColorScope ( ConsoleColor textColor ) : System
textColor ConsoleColor
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

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