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..


Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -