Posts by Octavio Pires • 1 point
1 post
-
0
votes5
answers5699
viewsA: How to get the current iteration index of a foreach?
You use for to have control of the iteration, and use Elementat to get the value static void Main(string[] args) { var lista = new List<teste>() { new teste("João", 12), new teste("Maria",…