I have two lists as below, how can I say that they have the same elements. The order is not important.
var list1 = new List<int> {1,2,3};
var list2 = new List<int> {2,1,3};
How can I say that these are equal? Should I write my own method or is there a built-in method for it?
See Question&Answers more detail:os