Question: I want to loop through three `List<string>`. I'm sending `ajax` request containing 3 parameter as Array.

This is my `WebMethod`.

```
 public string saveEachTask(string imageData, string desc, string tid)
    {
            var imglist = imageData.Split(',').ToList();
            var desclist = desc.Split(',').ToList();
            var idlist = tid.Split(',').ToList();
           // here i want a foreach loop for above three list
            return "Saved Succesfully";
    }

```

**Edit: in loop how can I identity which string is for img, desc and id**

Any Help appreciated.

Answer: 
Perhaps something like this:

```
foreach (var list in new[] {imglist, desclist, idlist})
{
  foreach (var s in list)
  {
  }
}

```
If you need to handle everything the same way in your loop, you could try:

```
foreach(var s in imglist.Union(desclist.Union(idlist)))
{
    // do something with the string
}

```