C# select elements from IList
- by user313884
I have a list of objects: IList<O>
O has several properties but only two of them are relevant: Date and Duration
I want to "split" the list into several lists that contain only the objects that have matching Date and Duration Properties.
Example:
InitialList:
0- Date==1, Duration==7
1- Date==1, Duration==7
2- Date==2, Duration==7
3-…