private static IConsoleX Write(this IConsoleX console, ConsoleColor color, string format, params object[] arg) { var oldColor = Console.ForegroundColor; Console.ForegroundColor = color; console.Write(format, arg); Console.ForegroundColor = oldColor; return(console); }
public static IConsoleX WriteYellow(this IConsoleX console, string format, params object[] arg) { return(console.Write(ConsoleColor.Yellow, format, arg)); }
public static IConsoleX WriteLineWhite(this IConsoleX console, string format, params object[] arg) { return(console.WriteLine(ConsoleColor.White, format, arg)); }
public static IConsoleX WriteBlue(this IConsoleX console, string format, params object[] arg) { return(console.Write(ConsoleColor.Green, format, arg)); }