I have an IEnumerable object. I would like to access based on index for instance:
for(i=0; i<=Model.Products; i++) { ??? }
Is this possible?
var myProducts = Models.Products.ToList(); for(i=0; i< myProducts.Count ; i++) { //myProducts[i]; }
1.4m articles
1.4m replys
5 comments
57.0k users