Beispiel #1
0
        static void Main()
        {
            MadeUpList <int> myMadeUpList = new MadeUpList <int>();

            foreach (int index in myMadeUpList)
            {
                Console.WriteLine(index + " ");
            }
        }
Beispiel #2
0
        public MadeUpList <T> Zip(MadeUpList <T> list2)
        {
            MadeUpList <T> list1 = new MadeUpList <T>();

            for (int i = 0; i < ArrayCount + list2.ArrayCount; i++)
            {
                if (ArrayCount > i)
                {
                    list1.Add(Array[i]);
                }
                if (list2.ArrayCount > i)
                {
                    list1.Add(list2.Array[i]);
                }
            }
            return(list1);
        }