foreach() with Index in c# 28-12-2015 19:07:15 C# / Extensions 0 Bookmark(s) 195 View(s) foreach (var entry in list.Cast().Select((item, index) => new { item, index })) { Console.WriteLine("{0} {1}", entry.index, entry.item); }