17 if (list.Count != other.Count)
20 List<T> FirstNotSecond = list.Except(other).ToList();
21 List<T> SecondNotFirst = other.Except(list).ToList();
22 return FirstNotSecond.Count == 0 && SecondNotFirst.Count == 0;
Extensions for the List<T> class.
static bool HasSameContentAs< T >(this List< T > list, List< T > other)
Compares to lists for content equality.