I have the following object in a collection (List)
public class MyObject{ string vendor; string unit; int unit123; AnotherObject unit456; } This can be long and repetitive.
I want to select, using linq, only the distinct values of vendor and unit and put it in the following structure
Dictionary
Is it possible?