I have two lists
List a = new List(); List b = new List();
Now i want to iterate throug
This is another way you could do it:
for (int i = 0; i < (a.Count > b.Count ? a.Count : b.Count); i++) { object objA, objB; if (i < a.Count) objA = a[i]; if (i < b.Count) objB = b[i]; // Do stuff }