예제 #1
0
        public void RunExample()
        {
            Action a1 = AsteaptaEnter;

            a1.Invoke();
            Action a2 = Test;

            a2.Invoke();
            Action[] actions = new Action[] { a2, AfiseazaLungimea, a1 };
            actions1 = new Queue <Action>();
            foreach (var actiune in actions)
            {
                actiune.Invoke();
            }
            foreach (var pas in Pasi)
            {
                actions1.Enqueue(pas);
            }
            while (actions1.Count > 0)
            {
                var v = actions1.Dequeue();
                v.Invoke();
                actions[1].Invoke();
            }
            IntoarcereString a3 = Console.ReadLine;

            a3.Invoke();
            a3();
            IntMath d4 = Suma;

            Console.WriteLine(d4.Invoke(3, 5));
            Console.WriteLine(d4(13, 21));
        }