SyntaxFix
Write A Post
Hire A Developer
Questions
//using foreach loop how to get index number: foreach (var result in results.Select((value, index) => new { index, value })) { //do something }