title: No overload for method 'X' takes 1 arguments
body: <p>I'm facing a problem in C# right now which is bugging me a lot..
  Anyway here is a part of the code;</p>
  
  <pre><code>public class blocked
  {
     public static void blockedOpcodes()
     {
      Dictionary&lt;ushort, String&gt; Opcodes
      = new Dictionary&lt;ushort, String&gt;();
              Opcodes.Add(0x2005, "Blocked: TD46 Tool");
      }
  }
  </code></pre>
  
  <p>Continue, I'm trying to get the list of the opcodes from dictionary;</p>
  
  <pre><code> if (Project_name.blocked.blockedOpcodes(current.Opcode))
  {
  }
  </code></pre>
  
  <p>^ but that one shows error 'No overload for method 'blockedOpcodes' takes 1 arguments.'</p>
  
  <p>EDIT1: I tried to change</p>
  
  <pre><code>   public static void blockedOpcodes()
     {
  </code></pre>
  
  <p>to</p>
  
  <pre><code>   public static void blockedOpcodes(ushort opcode)
     {
  </code></pre>
  
  <p>But another error shows up with 'Cannot implicitly convert type 'void' to 'bool''</p>
  
  <p>PS: I'm completely beginner! I have only started a week ago.</p>
  
  <p>I would appreciate any help, thank you!</p>