How to remove duplicate content from a given collection of collections? not taking order into account.
for eg.
IEnumerable<IEnumerable<T>> Collection = [{1,2,3} , {2,1,3}, {1,1,2}, {1,2,2}]
should be
IEnumerable<IEnumerable<T>> Collection = [{1,2,3} , {1,1,2}, {1,2,2}] // [ {2,1,3}, {1,1,2}, {1,2,2}] is also valid
** Edit **
I understand, for IEnumerables E1 and E2 I could do something like this to find the duplicates:
bool equal = (E1.Count() == E2.Count() && (!E1.Except(E2).Any() || !E2.Except(E1).Any()))
if(equal)
{
//Do something
}
However, how to do something similar for
IEnumerable<IEnumerable<T>>