title: LINQ to return Boolean
body: <p>I have to check whether the collection has two primary key values. I have done like,</p>
  
  <p>//Code</p>
  
  <pre><code>Dim query = TableColumnsCollection.GroupBy(Function(x) x.IsPrimaryKey).Where(Function(y) y.Count() &gt; 1)
  </code></pre>
  
  <p>Now i have to return the type as <code>boolean</code> when the count exceeds more than "One".</p>
  
  <p>When the count exceeds 1 then it should be "True" else "False".</p>
  
  <p>I should be getting something like,</p>
  
  <pre><code>Dim blnFlag As Boolean= False
  
  blnFlag=//Query here ???
  </code></pre>
  
  <p>When i tried to assign the above query i'm getting the below error.</p>
  
  <pre><code>"Value of type IEnumarable cannot be converted to Boolean"
  </code></pre>
  
  <p>How can i do that?</p>