I have a C# application that loads a List of CLR objects called \"Tasks\". Each Task has the following properties:
public int ID { get; set; }
public int Typ
Let me make sure I understand the problem: you have a sequence of tasks called allTasks, and you would like a sequence without duplicates of all the ids, yes?
Transform the sequence of tasks into a sequence of ids:
var ids = allTasks.Select(p=>p.TypeId);
Now you have a sequence of ids. You wish to filter out the duplicates from that sequence:
var distinctIds = ids.Distinct();
And you're done. Is that what you were after?