I have an IEnumerable object. I would like to access based on index for instance:
for(i=0; i<=Model.Products; i++) { ??? }
Is this
foreach(var indexedProduct in Model.Products.Select((p, i)=> new {Product = p, Index = i}) { ... ...indexedProduct.Product... ...indexProduct.Index ...//this is what you need. ... }