Params Issue in WCF
<p>I have created a WCF service in C# i am having error of no overload method adder takes 5 arguments please help.</p>

<p>Console Client</p>

<pre><code>static void Main(string[] args)
        {    
            Service1Client client = new Service1Client();
            int Result = client.adder(3, 44, 44, 4441, 11);           
        }
</code></pre>

<p>In Service1.svc</p>

<pre><code>public int adder(params int[] no)
{
            int total = 0;
            for (int i = 0; i &lt; no.Length; i++)
            {
                total +=no[i];
            }
            return total;
}
</code></pre>

<p>In IService1.cs</p>

<pre><code>[OperationContract]
int adder(params int[] no);
</code></pre>