c# - Removing Duplicates "ABD" "BAD" "DAB" from a list of permutations -
i have rather large list of strings contains duplicates in sense if care if a,b,c in result, not order in. looked many other duplication removal solutions, typically work exact values(which understand since these elements aren't exact dups, more spurious or superfluous results.) have list , didn't create it, changing selection not option.
simply sort elements within each item first.
listofstrings.select(s => new string(s.orderby(c => c))).distinct().tolist();
you see mean - sort chars. i'll check syntax of momentarily..