title: Can't convert a char to string using standard Linq methods?
body: <p>I am trying to count the amounts of brackets in a given text using Linq standard methods. This is the code I have written so far.</p>
  <pre class="lang-cs prettyprint-override"><code>using System;
  using System.Linq;
  
  namespace Exercises
  {
      class BracketExercise
      {
          static void Main(string[] args)
          {
              string bracketlist = &quot;a(werawq4rqdcds()()()((((()DAs3&quot;;
              string value = &quot;(&quot;;
              //string value2 = &quot;)&quot;;
              
              bool result = bracketlist.Contains(value);
              Console.WriteLine($&quot;Does string contain specified substring? {result}&quot;);
              if (result == true)
              {
                  int freq = bracketlist.Count(f =&gt; (f == value));
                  Console.WriteLine(freq);
              }
          }
  
      }
  
  }
  </code></pre>
  <p>Am I missing something? This piece gives me compiler error CS0019, Operator 'operator' cannot be applied to operands of type 'char' and 'string'.
  I tried changing &quot;Value&quot; to a var type, but that didn't work either.ch</p>