mirror of
https://github.com/Stone-Red-Code/Stone_Red-C-Sharp-Utilities.git
synced 2026-09-04 09:06:31 +02:00
Created ConsoleExtentions (markdown)
@@ -0,0 +1,36 @@
|
||||
# Stone_Red_Utilities.ConsoleExtentions
|
||||
|
||||
## Methods
|
||||
|
||||
* Write
|
||||
* Description: Writes the text representation of the specified object to the standard output stream.
|
||||
* Parameters: `object value`, `ConsoleColor color`
|
||||
* Example usage:
|
||||
|
||||
```cs
|
||||
ConsoleExt.Write("text in red", ConsoleColor.Red);
|
||||
```
|
||||
|
||||
* Output:
|
||||
|
||||
```text
|
||||
text in red
|
||||
```
|
||||
|
||||
(Imagine that the text is actually red)
|
||||
* WriteLine
|
||||
* Description: Writes the text representation of the specified object, followed by the current line terminator, to the standard output stream.
|
||||
* Parameters: `object value`, `ConsoleColor color`
|
||||
* Example usage:
|
||||
|
||||
```cs
|
||||
ConsoleExt.WriteLine("text in green", ConsoleColor.Green);
|
||||
```
|
||||
|
||||
* Output:
|
||||
|
||||
```text
|
||||
text in green
|
||||
```
|
||||
|
||||
(Imagine that the text is actually green)
|
||||
Reference in New Issue
Block a user