I currently have a list containing items which have fields: "name, description, source, title, ...". I want to dump a list from this, but solely unique based on two keys, the name and description. Basically, I don't want items from the list with the same name and the same description, but if they have different names and the same description, then it's fine.
I looked up that using
list.select(x => x.Name).Distinct()
would give me a list with distinct name, but stacking them would violate having one of the unique keys different, and one the same.
I also took a look into hash sets, but I'm completely confused on how that works.
If anyone could help, it would be greatly appreciated.