title: Not iterating foreach loop but count is 1849, should iterate all
body: <p>I'm using CsvHelper to read a CSV file.</p>
  <p>This is my code (pretty simple):</p>
  <pre><code>using (var reader = new StreamReader(&quot;example.csv&quot;))
  using (var csv = new CsvReader(reader, CultureInfo.InvariantCulture))
  {
      var records = csv.GetRecords&lt;CsvData&gt;();
      int i = 0;
      foreach (var record in records)
      {                    
          i++;
          Console.WriteLine($&quot;Processed {i}/{records.Count()} records.&quot;); 
      }
  }
  Console.WriteLine(&quot;Script finished&quot;);
  </code></pre>
  <p>The problem is that my code is not looping that foreach, so it won't print anything... I put a breakpoint in <code>i++;</code> line but it doesn't breaks.</p>
  <p>If I print <code>records.Count()</code> it will return 3:</p>
  <p><a href="https://i.stack.imgur.com/2tdi9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2tdi9.png" alt="enter image description here" /></a></p>
  <p>This could be an example of a CSV file:</p>
  <p><a href="https://i.stack.imgur.com/x6b0g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x6b0g.png" alt="enter image description here" /></a></p>
  <p>Code format so you can copy it:</p>
  <pre><code>Size,Color
  8,Yellow
  2,Orange
  13,Blue
  </code></pre>
  <p>And this could be an example of class CsvData:</p>
  <pre><code>public class CsvData
  {        
      public decimal? Size { get; set; }
      public string Color { get; set; }
  }
  </code></pre>
  <p>How should I iterate my rows parsing into my CsvData class creating a <code>List&lt;CsvData&gt;</code> or similar?</p>