title: Different Ways to Pull Number From Results View Of LINQ Query
body: <p>I have an array of numbers, I'm trying to see the value of the numbers that occur 3 times in the array. For example here is an array of numbers [4, 4, 4, 3, 3] and when I pass this into this query as dice:</p>
  
  <pre><code>var triples = dice.GroupBy(x =&gt; x).Where(g =&gt; g.Count() &gt; 2).Select(y =&gt; y.Key);
  </code></pre>
  
  <p>I can see in the results view of the triples object a <code>4</code> which is what I want but how do I pull that number out and into a variable to use? I don't understand LINQ that well yet. Thanks!</p>
  
  <p>Right now I get object of type: <code>System.Linq.Enumerable.WhereSelectEnumerableIterator&lt;System.Linq.IGrouping&lt;int,int&gt;,int&gt;</code> as the value of triples, and when I dive into the object I can see the value that I want "4" in the results view</p>