How to remove reverse duplicates in a C# Tuple list

Viewed 1102

Say I have a Tuple List like this:

    List<Tuple<string, string>> conflicts = new List<Tuple<string, string>>();
    conflicts.Add(new Tuple<string, string>("Maths", "English"));
    conflicts.Add(new Tuple<string, string>("Science", "French"));
    conflicts.Add(new Tuple<string, string>("French", "Science"));
    conflicts.Add(new Tuple<string, string>("English", "Maths"));

And I want to check the Tuple List for reverse duplicates and remove them, how would I go about doing this with a loop?

NOTE: by reverse duplicates I mean the recurrence of "English", "Maths" and "Maths", "English"

NOTE: My Tuple in my code is populated using SqlDataReader but the example I used above is pretty close to the way its laid out.

This seems like it would be really simple but it has had be stumped all night

7 Answers
Related