SyntaxFix
Write A Post
Hire A Developer
Questions
Or even more simple if you don't want to use a lot of linq and for some reason don't want to use a for loop.
int i = 0; foreach(var x in arr) { //Do some stuff i++; }