how to transfer data from array to function
<p>i need to transfer data from array to function in C#</p>

<p>the function:</p>

<pre><code>    public void  InsertData(params  string [] DATA)
    {
        string MAC, ID_OLD, ID_NEW, Serial;
        MAC    = DATA[0].ToString();
        ID_OLD = DATA[1].ToString();
        ID_NEW = DATA[2].ToString();
        Serial = DATA[3].ToString();
    }
</code></pre>

<p>in the main:</p>

<pre><code>string[] arr;
private void button1_Click(object sender, EventArgs e)
{
      arr = new string[5];

      arr[0] = "1";
      arr[1] = "2";
      arr[2] = "3";
      arr[3] = "4";

      InsertData(arr);
}
</code></pre>

<p>but its not working</p>
