Summary
Provides console I/O operations used by GitVersion's logging infrastructure.
- Assembly
- GitVersion
.Core .dll - Namespace
- GitVersion
graph BT
Type["IConsole"]
class Type type-node
Syntax
public interface IConsole
Attributes
| Type | Description |
|---|---|
| Nullable |
Methods
| Name | Value | Summary |
|---|---|---|
| ReadLine |
string |
Reads a line of text from the console.
|
| UseColor |
IDisposable |
Returns a disposable that sets the console foreground colour to consoleColor and restores the previous colour when disposed.
|
| Write |
void |
Writes msg to the console without a trailing newline.
|
| WriteLine |
void |
Writes msg followed by a newline to the console.
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| NotNull |
T |
Throws
System.ArgumentNullException when value is null; otherwise returns the value.From CommonExtensions
|