public static bool equalsSet <S>(MyList <S> _list1, MyList <S> _list2) { if (!_list1.containsAll(_list2)) { return(false); } if (!_list2.containsAll(_list1)) { return(false); } return(true); }
public static bool equalsSet <S>(MyList <S> _list1, MyList <S> _list2, bool _eqSize) { if (_eqSize) { if (_list1.Count != _list2.Count) { return(false); } } if (!_list1.containsAll(_list2)) { return(false); } if (!_list2.containsAll(_list1)) { return(false); } return(true); }