Passing array to function of specific type : <p>I need help with this code. I cant make it work so.. something is unclear for me yet.</p>

<pre><code>using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;

class Solution
{
    static int[] foo(int[] array)
    {
        int[] xx = new int[array.Length];

        for(int i = 0; i &lt; array.Length; i++)
        {
            array[i] *= 2;
            Console.WriteLine(array[i]);
        }

        return array;
    }

    static void Main(string[] args)
    {

        int[] array = new int[4] {73, 67, 38, 33 };

        foo(array);

    }
}
</code></pre>

<p>How to rebuild <em>foo</em> function to return values from <em>array</em> ?</p>

<p>I saw a lot of help links with void function.. and they werent useful. When it comes to specific type of function I cant make it work. </p>

<p>Thanks</p>

<p>ddr8</p>
