title: C#, get all collection properties from an object
body: <p>I have a class with 3 List collections like the following.</p>
  
  <p>I am trying to have a logic which will iterate through the object's "collection"
   properties and do some operation using the data stored in those collections.</p>
  
  <p>I am just wondering if there is an easy way of doing it using foreach.
  thanks</p>
  
  <pre><code>public class SampleChartData
      {
          public List&lt;Point&gt; Series1 { get; set; }
          public List&lt;Point&gt; Series2 { get; set; }
          public List&lt;Point&gt; Series3 { get; set; }
  
          public SampleChartData()
          {
              Series1 = new List&lt;Point&gt;();
              Series2 = new List&lt;Point&gt;();
              Series3 = new List&lt;Point&gt;();
          }
      }
  </code></pre>