I have a class with properties: Row, Seat.
For example we have the following data:
Row Seat
1 1
1 2
1 3
2 4
2 5
I want return Dictionary<int,int> that contain Row as key, and numbers of seats in row as value.
For above example the dictionary will contain two records:
Key Value
1 3
2 2
How can I do this?
Thanks.
1 Answer