Beispiel #1
0
 public void Render(TextWriter writer)
 {
     // Disable any attribute sequences
     Reset.Render(writer);
     foreach (var stylePair in this)
     {
         var list = stylePair.Value;
         if (stylePair.Key == ConsoleStyleKind.Color)
         {
             if (list.Count > 0)
             {
                 list[list.Count - 1].Render(writer);
             }
         }
         else if (stylePair.Key == ConsoleStyleKind.Format)
         {
             foreach (var item in list)
             {
                 item.Render(writer);
             }
         }
     }
 }