Having trouble with something simple, because i've never done it before and couldnt find the exact solution. I've got a dataset populated by a stored proc. I just want to loop through it and assign some local variables to the output.

Here is the simplistic loop I am using:

```
  foreach (DataTable table in ds.Tables)
            {
                foreach (DataRow row in table.Rows)
                {
                    foreach (object item in row.ItemArray)
                    {
                    }
                }
            }

```

I have a specific set of variables that I want to populate via the data in the ItemArray. Just need help with the syntax.

Pseudocoded:

```
      string a;
        string b;
        string c;

  foreach (DataTable table in ds.Tables)
            {
                foreach (DataRow row in table.Rows)
                {
                    foreach (object item in row.ItemArray)
                    {
a = item 1 in this row
b = item 2 in this row
c = item 3 in this row
                    }
                }
            }

```

The a,b, and c assignments are what I need the syntax for.