title: Ienumerable concat not working in for each loop
body: <p>I'm trying to use the <code>Concat</code> method of an IEnumerable inside a for each loop, but I can't get it working properly.</p>
  
  <pre><code>IEnumerable&lt;Geo&gt; geos = null;
  foreach (string a in values)
  {
      if (geos == null)
          geos = entities.Geos.Where(g =&gt; (g.ACode == Convert.ToInt16(a)));
      else
          geos = geos.Concat(entities.Geos.Where(g =&gt; (g.ACode == Convert.ToInt16(a))));
  }
  </code></pre>
  
  <p>What it returns is only values for the final "a" in values that too for the count of records present in values.</p>
  
  <p>So if i have 1,2,3 as values, it return only for 3. I need the value for 1,2 and 3 as well.</p>
  
  <p>Where am I going wrong?</p>