How can i return a fibonacci series? Should i use IList<>?
<pre><code>public int Fibonacci(int x)
{        
    int prev = -1;
    int next = 1;
    for (int i = 0; i &lt; x; i++)
    {
        int sum = prev + next;
        prev = next;
        next = sum;
        Console.WriteLine(sum); 
    }
    return sum; // plz teel me how can i return whole list ??
}
</code></pre>

<p>How can i return whole output of above series? i.e. if x=3 then 0 1 1 2 so how can i return it?</p>
