Suppose I have this class:
class Person {
string name;
}
Suppose I have a HashSet<Person> people
with some objects in.
It is guaranteed that there will be at most 2 objects in people
that have the same name.
Is there a way to find a pair of people with the same name inside people
with Linq of another short way?
I could obviously run 2 fors, but I guess there may be a oneliner for that?