This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
ConsoleExtentions
Stone_Red edited this page May 10, 2021
·
2 revisions
- Write
-
Description: Writes the text representation of the specified object to the standard output stream.
-
Parameters:
object value
,ConsoleColor color
-
Example usage:
ConsoleExt.Write("text in red", ConsoleColor.Red);
-
Output:
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:
ConsoleExt.WriteLine("text in green", ConsoleColor.Green);
-
Output:
text in green
(Imagine that the text is actually green)
-