How to iterate a loop every n items with C#

I have an ObservableCollection and a list of values ​​I want to loop so that I insert 10 values ​​in turn at a time ObservableCollection and process them. I tried Dictionary<string, ObservableCollection<object>> dataDic = new Dictionary<string, ObservableCollection<object>>(); ObservableCollection<ListViewThumbnailViewModel> result; foreach (KeyValuePair<string, ObservableCollection<object>> pair in dataDic) { DateTime _date = DateTime.ParseExact(pair.Key, PRIVATE_DATE_FORMAT, CultureInfo.InvariantCulture); for (int i…

Details