コード例 #1
0
 public static void Write(this IColoredTextWriter textWriter, Color?foreground, Color?background, char value, int count)
 {
     if (count <= 0)
     {
         return;
     }
     textWriter.SetColors(foreground, background);
     textWriter.Write(value, count);
     textWriter.ResetColors();
 }
コード例 #2
0
 public static void Write(this IColoredTextWriter textWriter, Color?foreground, Color?background, char value)
 {
     textWriter.SetColors(foreground, background);
     textWriter.Write(value);
     textWriter.ResetColors();
 }