There are two lists of string
List A; List B;
What is the shortest code you would suggest to check that A.Count ==
A.Count == B.Count && new HashSet(A).SetEquals(B);
If different frequencies of duplicates are an issue, check out this question.