关于[Using foreach with index in C#]的摘要:
for and foreach loops are among the most useful constructs in a C# developer’s toolbox. To iterate a collection, foreach is, in my opinion, more convenient than for in most cases. It works with all collection types, including those that are not indexable such as IEnumerable
原文地址: https://thomaslevesque.com/2019/11/18/using-foreach-with-index-in-c/