Skip to content

ServiceNow.Core

SNow.Core.Extensions.ConsoleColorExtensions

ConsoleColorExtensions.WriteLine(ConsoleColor, string) Method

Writes the specified string value, followed by the current line terminator, to the standard output stream.

csharp
public static void WriteLine(this System.ConsoleColor foregroundColor, string value);

Parameters

foregroundColor System.ConsoleColor
Foreground color.

value System.String
The value to write.

Example

ConsoleColor.Green.WriteLine("The task executed successfully");

Released under the MIT License.