-2
votes
2answers
116 views

Is this correct way to use loops or should it be in LINQ?

The results variable is coming from an API that have a arrays in arrays, etc. I have made a foreach with ...
2
votes
2answers
1k views

Change one column data from List<>

I have this code: for (int i = 0; i < lst.Count(); i++) { lst[i].ColumnOrder = (short)i; } But I was trying to find a way to do it via LINQ or something ...
1
vote
1answer
28 views

Should I use and loop, or just a loop?

I build a code like this ...
2
votes
1answer
775 views

filter a collection in a PagedCollectionView

I have scenario wherein I have to filter a collection in a PagedCollectionView. The filter criteria are Name and status which are check boxes with Enabled and Disabled labels If Enabled is checked it ...
2
votes
1answer
119 views

Improve grouping in LINQ

I have a collection (Child Collection) on which I am performing some operation to make another collection (Parent Collection). But that I do in a dirty foreach ...