title: c# Linq Take 5 Object for each Group
body: <p>I try Get 5 Object in each group to display.
  I tried code like this:</p>
  
  <pre><code>var BBS = (from bb in db.Object
             where SubjectList.Contain(bb.Type)
             select new ObjectModel {
                 Subject = bb.Subject,
                 CDate = bb.CDate
             }).GroupBy(a =&gt; a.BBSTypeSubject).Take(5);
  </code></pre>
  
  <p>but it doesn't work.
  and then I try it by using Foreach </p>