title: C# -how to add all system.drwaing.color items in a list?
body: <p>I'm trying to fill my list with system.drwaing.color items to pick a random color and set it to backColor.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    List&lt;Color&gt; myList = new List&lt;Color&gt;();
      //rc.Add(Color.Chartreuse);
      //rc.Add(Color.DeepSkyBlue);
      //rc.Add(Color.MediumPurple);
      foreach (Color clr in System.Drawing.Color)
      {
        //error  
      }
      Random random = new Random();
      Color color = myList[random.Next(myList.Count - 1)];
      this.BackColor = color;
  </code></pre>
  
  <p>Error:
  'System.Drawing.Color' is a 'type', which is not valid in the given context</p>
  
  <p>Can anyone give me a Hand?</p>