title: C# LINQ GroupBy to convert a List to a group with one property as List of values
body: <p>I have a list of objects <code>list1</code></p>
  
  <pre><code>Name Value
  N1   V100 
  N2   V101
  N1   V102
  N4   V103
  N4   V104
  </code></pre>
  
  <p>I want to convert this into a grouped List</p>
  
  <pre><code>Name Values
  N1   V100, V102 
  N2   V101
  N4   V103, V104
  </code></pre>
  
  <p>When I use <code>GroupBy</code> I get the whole thing, <code>( list1.GroupBy(key =&gt; key.Name) )</code></p>
  
  <pre><code>Name Values
  N1
    N1   V100
    N1   V102
  N2
    N2   V101
  N4
    N4   V103
    N4   V104
  </code></pre>
  
  <p>I just want the values as a List.</p>