title: exclude item from array list c#
body: <p>I am using ASP.NET 2013, I want draw the chart and give different color for each point except some e.g Black, Transparent and so on.</p>
  
  <p>It is working fine but there are some colors I would like to exclude.</p>
  
  <pre><code>var colours = typeof(System.Drawing.Color)
                 .GetProperties()
                 .Where(x =&gt; x.PropertyType == typeof(System.Drawing.Color))
                 .Select(x =&gt; x.Name)
                 .ToArray();
  
  Random rColor = new Random();
  
  foreach (var item in Chart2.Series[0].Points)
  {
     item.Color = System.Drawing.Color.FromName(colours[rColor.Next(0, colours.Length)]); 
  }
  </code></pre>