2
ConsoleExtentions
Stone_Red edited this page 2021-05-10 17:54:29 +02:00

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:

      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)