title: linq select all from group by
body: <p>if i don't want to specified field one by one but i want to select all field without  specified. how am i going to do it?</p>
  
  <pre><code>List&lt;test&gt; xxx = new List&lt;test&gt;();
              var rows = xxx.Where(s =&gt; s.test1 == "")
                  .GroupBy(s =&gt; s.test1)
                  .Select(s =&gt; new
                  {
                      test1 = s.First().test1,
                      test2 = s.First().test2
                  })
                  .ToList();
  </code></pre>
  
  <p>i dont want to use var rows = from s in xxx bla bla lba select s. but using above method. how to i do it?</p>
  
  <p>Regards,
  MH </p>