This is a bit of a general programming question sorry. I am just learning C#, and was wondering if someone could help me with getting my head around the most efficient method for handling this with List<>s.
I have a list, and I want to compare it to another list and execute some further instruction if both lists have exactly 2 items in common.
I know simple brute ways to do it, but I belief there are some list functions for this sort of thing, and I am trying to expand my capability with C#, rather than relying on old habits.
Thanks for your time