title: Group By records from csv file
body: <p>I'm loading CSV file </p>
  
  <p><a href="https://i.stack.imgur.com/nZmBQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nZmBQ.png" alt="enter image description here"></a></p>
  
  <p>Into:</p>
  
  <pre><code> public class ReleaseVersion
  {
      public string Version { get; set; }
      public DateTime? ReleaseDate { get; set; }
      public IEnumerable&lt;ReleaseNote&gt; ReleaseNotes { get; set; }
  
  }
  
  public class ReleaseNote
  {
      public string Description { get; set; }
      public string Progress { get; set; }
      public string Status { get; set; }
  }
  </code></pre>
  
  <p>How can i group all records by version and return list of <strong>ReleaseVersion</strong>?</p>
  
  <p>Here is what i did, however i did't know how to group by first column which is the version column in the file.</p>
  
  <pre><code>var records = csvLinesData.Select(data =&gt; new ReleaseVersion
          {
  
              Version = data[0],
              ReleaseDate = TryParse(data[1]),
              // add list of ReleaseNote ??
          }).ToList();
  </code></pre>