I have an IEnumerable collection of Car objects
A Car has the property: Year
Using LINQ, I want to find where there are> 1 cars with the same year and return this list.
I expect it to have to return an array of lists, because if the collection:
Car 1: Year 2010 Car 2: Year 2010 Car 3: Year 2009 Car 4: Year 2009 Car 5: Year 2010 Car 6: Year 2008
I would expect one list out of 3 in 2010 and one list out of 2 for 2009
Is it possible?
leora source share