translating php array into asp.net arraylist
<p>i'm trying translate some php code into asp.net code </p>

<p>php code:</p>

<pre><code>        function setOption ($result) {
            foreach ($result as $value) {

                $parentid[$value['id']] = $value['parentid'];   
                $subid[$value['parentid']][] = $value['id'];    
                $name[$value['id']] = $value['name'];           
                $display[$value['id']] = $value['display'];         
            }           

            return array($parentid, $subid, $name, $display);

        } 
</code></pre>

<p>asp.net code </p>

<pre><code>ArrayList al = new ArrayList();
    ArrayList parentid = new ArrayList();
    ArrayList subid = new ArrayList();
    ArrayList name = new ArrayList();
    ArrayList display = new ArrayList();

DataTable tbl = ds.Tables[0];
for (int i = 0; i &lt; tbl.Rows.Count; i++)
{
    DataRow myRow = tbl.Rows[i];
    int id = Convert.ToInt32(myRow["id"]);
    int parent_id = Convert.ToInt32(myRow["parent_id"]);
    int oid = Convert.ToInt32(myRow["oid"]);
    int dis = Convert.ToInt32(myRow["display"]);
    string title = myRow["title"].ToString();

    parentid.Insert(id, parent_id);
    subid.Insert();
    name.Insert(id, title);
    display.Insert(id, dis);
}

al.Add(parentid);
al.Add(subid);
al.Add(name);
al.Add(display);

return al;
</code></pre>

<p>but at $subid[$value['parentid']][] = $value['id']; is two dimensional array code, how do asp.net present it in asp.net arraylist code?</p>
