title: How to convert linq results to HashSet or HashedSet
body: <p>I have a property on a class that is an ISet.  I'm trying to get the results of a linq query into that property, but can't figure out how to do so.</p>
  
  <p>Basically, looking for the last part of this:</p>
  
  <pre><code>ISet&lt;T&gt; foo = new HashedSet&lt;T&gt;();
  foo = (from x in bar.Items select x).SOMETHING;
  </code></pre>
  
  <p>Could also do this:</p>
  
  <pre><code>HashSet&lt;T&gt; foo = new HashSet&lt;T&gt;();
  foo = (from x in bar.Items select x).SOMETHING;
  </code></pre>