title: LINQ: Query body must end with a select clause or a group clause
body: <p>when i am executing my LINQ code then i am getting the error <strong>A query body must end with a select clause or a group clause</strong></p>
  
  <p>i very rarely use LINQ and that is the reason not being able to figure out what is the problem on code. so anyone could see my below LINQ code and guide me what is my mistake for which getting error.</p>
  
  <pre><code>    string[] csvlines = File.ReadAllLines(filename);
      var query = from csvline in csvlines
      let data = csvline.Split(',').Skip(1)
      .Select(a =&gt; new User
      {
          CSRName = data[6],
          CallStart = data[0],
          CallDuration = data[1],
          RingDuration = int.Parse(data[2]),
          Direction = int.Parse(data[3]),
          IsInternal = int.Parse(data[4]),
          Continuation = int.Parse(data[5]),
          ParkTime = int.Parse(data[7])
      })
      .ToList();
  </code></pre>