Is there a built in linq method thing I can use to find out if two sequences contains the same items, not taking the order into account?
For example:
{1, 2, 3} == {2, 1, 3}
{1, 2, 3} != {2, 1, 3, 4}
{1, 2, 3} != {1, 2, 4}
You have the SequenceEquals, but then I would have to Order both sequences first, wouldn't I?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…