Source/NFX/IO/ConsoleUtils.cs
/// <summary>
/// Shows message with colored info header
/// </summary>
Shows message with colored info header
Shows message with colored info header
public static void Info(string msg, int ln = 0)
    {
       var f = Console.ForegroundColor;
       var b = Console.BackgroundColor;
        Console.ForegroundColor = ConsoleColor.Black;
        Console.BackgroundColor = ConsoleColor.Green;
        if (ln==0)
         Console.Write("Info:");
        else
         Console.Write("{0:D3}-Info:".Args(ln));
        Console.BackgroundColor = ConsoleColor.Black;
        Console.ForegroundColor = ConsoleColor.Gray;
        Console.WriteLine(" "+msg);
      Console.ForegroundColor = f;
      Console.BackgroundColor = b;
    }
public static void Info ( string msg , int ln = 0 ) { var f = Console . ForegroundColor ; var b = Console . BackgroundColor ; Console . ForegroundColor = ConsoleColor . Black ; Console . BackgroundColor = ConsoleColor . Green ; if ( ln == 0 ) Console . Write ( " " ) ; else Console . Write ( " " . Args ( ln ) ) ; Console . BackgroundColor = ConsoleColor . Black ; Console . ForegroundColor = ConsoleColor . Gray ; Console . WriteLine ( " " + msg ) ; Console . ForegroundColor = f ; Console . BackgroundColor = b ; }
Shows message with colored info header
Shows message with colored info header
msg
string
ln
int