title: Refactoring LINQ to Query Expressions
body: <p>How can I refactor this LINQ to a Query Expression ??</p>
  
  <pre><code>    private static IEnumerable GetNameOccurrence(IEnumerable&lt;string&gt; allNames)
      {
          var nameTest = allNames.GroupBy(n =&gt; n).
              Select(group =&gt;
                  new
                  {
                      Name = group.Key,
                      Count = group.Count()
                  }).OrderByDescending(group =&gt; group.Count);
  
          return nameTest;
      }
  </code></pre>