title: GroupBy either of two properties in LINQ
body: <p>I know its easy to group objects by two properties but I was wondering is it possible to Group by either of two properties? Probably below example will make it more clear:-</p>
  
  <p>Suppose I have this table:-</p>
  
  <pre><code>CategoryID        Fruit
  -------------------------
  1                 Apple
  1                 Grapes
  2                 Tablet
  2                 Laptop
  5                 Coke
  6                 Coke
  </code></pre>
  
  <p>Now, i want to group this data either if CategoryIds are same or Fruits are same.</p>
  
  <p>Sample Output:-</p>
  
  <pre><code>Group 1:-
  1          Apple
  1          Grapes
  
  Group 2:-
  2          Tablet
  2          Laptop
  
  Group 3:-
  5          Coke
  6          Coke
  </code></pre>