I have a List of objects in C#. All the objects contain properties code1 and code2 (among other properties).
Example:
List -> object = id, name, code1, code2, hours, amount.
There are 31 possible code1 values. There are 10 possible code2 values.
I need to group together all objects having the same code1 and code2 values (the unique combination) into their own Lists which would be saved within a parent list (so that each individual list could be iterated over later.)