Esempio n. 1
0
        static void Main(string[] args)
        {
            addDel aDel = (int a, int b) => { return(a + b); };

            Console.WriteLine("Result = {0}", aDel(2, 3));
            xDel x = x => x + 3;

            Console.WriteLine("Result of xDel = {0}", x(5));
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            addDel adel = (int a, int b) => { return(a + b); };

            Console.WriteLine("result ={0}", adel(2, 3));
            {
                xDel x = X => X + 3;
                Console.WriteLine("result of xDel = {0}", x(5));
            }
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            addDel adel = (int a, int b) => { return(a + b); }; //Lambda Expression

            Console.WriteLine("result = {0}", adel(2, 3));

            xDel x = x => x + 3; //Lambda Expression

            Console.WriteLine("Result of xDel = {0}", x(5));
        }
Esempio n. 4
0
        /*public static int add(int a, int b)
         * {
         *  return a + b;
         * }*/

        static void Main(string[] args)
        {
            //Console.WriteLine("result = {0}",add(2,3));
            addDel adel = (int a, int b) => { return(a + b); };

            Console.WriteLine("Result = {0}", adel(2, 3));

            xDel xx = x => x + 3;

            Console.WriteLine("Result of xDel {0}", xx(5));
            Console.ReadLine();
        }
Esempio n. 5
0
        static void Main(string[] args)
        {
            addDel aDel = (int a, int b) => { return(a + b); }; //Lamda Expression

            Console.WriteLine("Relust = {0}", aDel(2, 3));


            xDel x = X => X + 3;;

            Console.WriteLine("Result of Xdel = {0}", x(5));

            Console.ReadKey();
        }