c# how do i return a generic list?
<pre><code>List&lt;decimal&gt; FindSumSubset(decimal sum, List&lt;decimal&gt; list)
        {
           for (int i = 0; i &lt; list.Count; i++)
           {
              decimal value = list[i];
              if (sum - value == 0.0m)
              {
                  return new List&lt;decimal&gt; { value };
              }
              else
              {
                  var subset = FindSumSubset(sum - value, list.GetRange(i + 1, list.Count -i));
                  if (subset != null)
                  {
                      return subset.Add(value);


                  }
              }
           }
           return null;
        }
</code></pre>

<p>i am getting an error on this line:</p>

<pre><code> return subset.Add(value);
</code></pre>

<p>the error:</p>

<pre><code>Error   1   Cannot implicitly convert type 'void' to 'System.Collections.Generic.List&lt;decimal&gt;'
</code></pre>

<p>anyone know how i can fix this>?</p>
