c# - To convert For loop into foreach loop -
how can convert below mentioned loop foreach loop? can assist me fix this?
@for (int rcount = 0; rcount < @model.itemfilters.categories.count; rcount++) { //some code }
probably, need this?
@foreach (var category in @model.itemfilters.categories) { //some code }
Comments
Post a Comment