title: C# Select Distinct Values from IGrouping
body: <p>I have two classes:</p>
  
  <pre><code>class Foo 
  { 
      public Bar SomeBar { get; set; } 
  }
  
  class Bar
  { 
      public string Name { get; set; } 
  }
  </code></pre>
  
  <p>I have a list of Foos that I group together:</p>
  
  <pre><code>var someGroup = from f in fooList
                  orderby f.SomeBar.Name ascending
                  group f by f.SomeBar.Name into Group
                  select Group;
  </code></pre>
  
  <p>How can I get the list of the distinct Bars from someGroup?</p>