I have a set of integers in a list. I know I can do something like this to get a specific event:
List<ResultsViewModel> list = data.ToList<ResultsViewModel>(); Response.Write(list[2].NoNotEncounterBarriersResult);
But how can I go through the loop and count the number of instances of list[i].NoNotEncounterBarriersResult = true and return the result as an integer?
source share