c# FindSumSubset(decimal, ArrayList<decimal>)' has some invalid arguments
<pre><code>ArrayList&lt;decimal&gt; FindSumSubset(decimal sum, ArrayList&lt;decimal&gt; list)
        {
           for (int i = 0; i &lt; list.Length; i++)
           {
              decimal value = list[i];
              if (sum - value == 0.0m)
              {
                  return new ArrayList().Add(value);
              }
              else
              {
                  var subset = FindSumSubset(sum - value, list.GetRange(i + 1, list.Length -i);
                  if (subset != null)
                  {
                      return subset.Add(value);
                  }
              }
           }
           return null;
        }
</code></pre>

<p>i am trying to call the above function like this:</p>

<pre><code>ArrayList numbers = new ArrayList();
            numbers.Add(210);
            numbers.Add(188.83);
            numbers.Add(67.93);
            numbers.Add(125.92);
            numbers.Add(35.92);
            numbers.Add(19.16);


            ArrayList listresult = new ArrayList();
            listresult = FindSumSubset(9075.12m, numbers);
</code></pre>

<p>i am getting two errors:</p>

<pre><code>Error   2   The best overloaded method match for 'WindowsFormsApplication2.Form1.FindSumSubset(decimal, ArrayList&lt;decimal&gt;)' has some invalid arguments
</code></pre>

<p>and</p>

<pre><code>Error   2   Argument '2': cannot convert from 'System.Collections.ArrayList' to 'ArrayList&lt;decimal&gt;'
</code></pre>

<p>can someone tell me what i am diong wrong?</p>
