Is there some rare language construct I haven\'t encountered (like the few I\'ve learned recently, some on Stack Overflow) in C# to get a value representing the current iter
I don't think this should be quite efficient, but it works:
@foreach (var banner in Model.MainBanners) { @Model.MainBanners.IndexOf(banner) }