title: Convert IGrouping to IList<Class>
body: <p>I want to take results from a IGrouping query and put it into a list.</p>
  
  <p>I tried to do do this as follow:</p>
  
  <p>The Entity class</p>
  
  <pre><code>public class WordRank
  {
  
      public string Word { get; set; }
      public string WordScore { get; set; }
  }
  </code></pre>
  
  <p>The method</p>
  
  <pre><code>     public void DisplayArticles()
      {
          var articles = this.articleRepository.TextMinerFindBy(this.view.Client, this.view.Brand, this.view.Project, this.view.Term, this.view.Channel, this.view.Begin, this.view.End, this.view.OnlyCategorized, this.view.UniquePosts);
          string snippets = string.Empty;
  
          foreach (var article in articles)
          {
              snippets = snippets + " " + article.Snippet;
          }
  
          Regex wordCountPattern = new Regex(@"[.,;:!?""\s-]");
          string snippetCollection = wordCountPattern.Replace(snippets, " ");
  
          var words = snippetCollection.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries);
  
          var groups = words.GroupBy(w =&gt; w);
  
  
          foreach (var item in groups)
          {
              this.view.Words.Add(item);
          }
      }
  </code></pre>
  
  <p>But is not possible to assign item to IList.
  Can anybody give me light?</p>
  
  <p>Thanks</p>