title: C# Impossible to convert method group to bool?
body: <pre><code>      public void nbOccurences(int[] base1, int n, int m)
       {
           foreach (int i in base1)
           {
               if (n == 32)
               {
                   m++;
               }
           }
       }
      static void Main(string[] args)
      {
          int chiffrebase = 32;
          int occurence = 0;
          int[] test123 = new int[] { 12, 32, 33, 64, 75, 46, 42, 32 };
          Program n1 = new Program();
          n1.nbOccurences(test123, chiffrebase, occurence);
          Console.WriteLine(nbOccurences);
      }
  </code></pre>
  
  <p>I keep getting a "Impossible to convert from method group to bool" message, what's causing the problem? I'm trying to use the method I made in the main program.</p>