title: adding items into list by for loops
body: <p>I am creating a chart for windows phone 7.</p>
  
  <p>This is the foreach for each hawker returned:</p>
  
  <pre><code>void dbSvc_retrievepopularhawkerCompleted(object sender, RouteServiceRef.retrievepopularhawkerCompletedEventArgs e)
  {
      List&lt;RouteServiceRef.Hawker&gt; recommendPlaceList;
      recommendPlaceList = e.Result.Cast&lt;RouteServiceRef.Hawker&gt;().ToList();
  
      string hawkername = "";
      string address = "";
      string postal = "";
      double coordX = 0.0;
      double coordY = 0.0;
      double popularity = 0;
  
  
  
      foreach (RouteServiceRef.Hawker rp in recommendPlaceList)
      {
          hawkername = rp.hawkername;
          address = rp.address;
          postal = rp.postal;
          coordX = rp.xcoord;
          coordY = rp.ycoord;
          popularity = rp.popularity;
  
  
      }
  </code></pre>
  
  <p>I have to change the above codes to be inside this list of cities:</p>
  
  <pre><code> List&lt;City&gt; cities = new List&lt;City&gt; { new City { Name = "CLE", Population = 2250871 }, new City { Name = "CMH", Population = 1773120 }, new City { Name = "CVG", Population = 2155137 }, new City { Name = "DET", Population = 4425110 } };
  </code></pre>
  
  <p>such as: <code>List&lt;City&gt; cities = new List&lt;City&gt; { new City Name = hawkername, Population = popularity }</code></p>
  
  <p>so that I can do a bind to my chart:</p>
  
  <pre><code> ColumnSeries bs = ChartControl.Series[0] as ColumnSeries; bs.ItemsSource = cities;
  </code></pre>
  
  <p>I am not sure how to mix them up, can someone guide me along ? As I do not want to hard code the name and population inside.</p>