Example #1
0
        public static bool equalsObjectSet <T>(MyList <T> _list1, IEnumerable <T> _list2)
        {
            MyList <Object> lsOne_ = new MyList <Object>();

            foreach (Object e in _list1)
            {
                lsOne_.Add(e);
            }
            foreach (Object e in _list2)
            {
                if (!lsOne_.containsObj(e))
                {
                    return(false);
                }
            }
            MyList <Object> lsTwo_ = new MyList <Object>();

            foreach (Object e in _list2)
            {
                lsTwo_.Add(e);
            }
            foreach (Object e in _list1)
            {
                if (!lsTwo_.containsObj(e))
                {
                    return(false);
                }
            }
            return(true);
        }
Example #2
0
        static int lowestIndexOfWordChar(String _string,
                                         int _minIndex,
                                         MyList <char> _metas)
        {
            int ind_ = _minIndex;

            while (ind_ < _string.Count())
            {
                if (!_metas.containsObj(_string.ElementAt(ind_)))
                {
                    break;
                }
                ind_++;
            }
            return(ind_);
        }
Example #3
0
        public static bool equalsSet <S>(MyList <S> _list1, IEnumerable <S> _list2)
        {
            foreach (S e in _list2)
            {
                if (!_list1.containsObj(e))
                {
                    return(false);
                }
            }
            MyList <S> ls_ = new MyList <S>();

            foreach (S e in _list2)
            {
                ls_.Add(e);
            }
            foreach (S e in _list1)
            {
                if (!ls_.containsObj(e))
                {
                    return(false);
                }
            }
            return(true);
        }