title: Operator '!' cannot be applied to operand of type 'method group'
body: <p>Probably a duplicate but of the related questions, I've yet to find a solution that works. Trying to count the number of digits up to a a number of character in a string.</p>
  
  <p>Getting the error: '!' cannot be applied to operand of type 'method group'</p>
  
  <pre><code>line.TakeWhile(!Char.IsLetterOrDigit).Count())
  </code></pre>