C# Overloaded method error
<p>Hi I have just started learning WCF and I have encountered an error I do not understand.</p>

<p>This method returns an error saying:</p>

<blockquote>
  <p>The best overloaded method match for "PersonKlient.ServiceReference1.PersonTjenesteGrensesnitt.searchAge(int)'
  has some invalid arguments"</p>
</blockquote>

<p>Here is the code</p>

<pre><code>   private void button3_Click(object sender, EventArgs e)
    {
        var personer = _tjeneste.searchAge(textBox2.Text);

        listBox1.Items.Clear();
        foreach (var person in personer)
        {
            listBox1.Items.Add(person.Fornavn + " " + person.EtterNavn);
        }
    }
</code></pre>

<p>However the method called is supposed to take a String argument. Not an int.</p>

<pre><code>        public List&lt;Person&gt; searchAge(String age)
    {
        List&lt;Person&gt; result = new List&lt;Person&gt;();
        int numAge = Convert.ToInt32(age);

        foreach (Person person in personer)
        {
            if (person.Alder == numAge)
                result.Add(person);
        }
        return result;
    }
</code></pre>

<p>Why am I getting this error?</p>
