示例#1
0
        public static CustomLists <T> operator +(CustomLists <T> listOne, CustomLists <T> listTwo)
        {
            CustomLists <T> arrayHolder = new CustomLists <T>();

            for (int i = 0; i < listOne.count; i++)
            {
                arrayHolder.Add(listOne[i]);
            }
            for (int i = 0; i < listOne.count; i++)
            {
                arrayHolder.Add(listTwo[i]);
            }
            return(arrayHolder);
        }
示例#2
0
        public static CustomLists <T> operator -(CustomLists <T> listOne, CustomLists <T> listTwo)
        {
            CustomLists <T> arrayHolder = new CustomLists <T>();
            bool            copy        = false;

            for (int i = 0; i < listTwo.count; i++)
            {
                for (int j = 0; j < listOne.count; j++)
                {
                    if (listTwo[i].Equals(listOne[j]) && !copy)
                    {
                        copy = true;
                    }
                    else
                    {
                        arrayHolder.Add(listOne[j]);
                    }
                }
            }
            return(arrayHolder);
        }
示例#3
0
 public static void Zip(CustomLists <T> list)
 {
 }