/// <summary> /// Writes output of a particular type to the user interface /// with a newline ending. /// </summary> /// <param name="consoleHost"> /// The IConsoleHost implementation to use for WriteOutput calls. /// </param> /// <param name="outputString"> /// The output string to be written. /// </param> /// <param name="outputType"> /// Specifies the type of output to be written. /// </param> public static void WriteOutput( this IConsoleHost consoleHost, string outputString, OutputType outputType) { consoleHost.WriteOutput( outputString, true, OutputType.Normal); }
/// <summary> /// Writes normal output to the user interface. /// </summary> /// <param name="consoleHost"> /// The IConsoleHost implementation to use for WriteOutput calls. /// </param> /// <param name="outputString"> /// The output string to be written. /// </param> /// <param name="includeNewLine"> /// If true, a newline should be appended to the output's contents. /// </param> public static void WriteOutput( this IConsoleHost consoleHost, string outputString, bool includeNewLine) { consoleHost.WriteOutput( outputString, includeNewLine, OutputType.Normal); }
/// <summary> /// Writes output of a particular type to the user interface. /// </summary> /// <param name="consoleHost"> /// The IConsoleHost implementation to use for WriteOutput calls. /// </param> /// <param name="outputString"> /// The output string to be written. /// </param> /// <param name="includeNewLine"> /// If true, a newline should be appended to the output's contents. /// </param> /// <param name="outputType"> /// Specifies the type of output to be written. /// </param> public static void WriteOutput( this IConsoleHost consoleHost, string outputString, bool includeNewLine, OutputType outputType) { consoleHost.WriteOutput( outputString, includeNewLine, outputType, ConsoleColor.White, ConsoleColor.Black); }
/// <summary> /// Writes normal output with a newline to the user interface. /// </summary> /// <param name="consoleHost"> /// The IConsoleHost implementation to use for WriteOutput calls. /// </param> /// <param name="outputString"> /// The output string to be written. /// </param> public static void WriteOutput( this IConsoleHost consoleHost, string outputString) { consoleHost.WriteOutput(outputString, true); }