Esempio n. 1
0
        static void Main()
        {
            math m=new math();

            mathdelegate d=new mathdelegate(m.addition);
            Console.WriteLine(d(10,20));
            d+=m.subtraction;
            d+=m.multiplication;
            Console.WriteLine(d(10,20));
        }
Esempio n. 2
0
        static void Main()
        {
            math m=new math();

            mathdelegate d=new mathdelegate(m.addition);
            d(10,20);
            d+=m.subtraction;
            d+=m.multiplication;
            d(100,200);
        }
Esempio n. 3
0
        static void Main()
        {
            math m = new math();

            mathdelegate d = new mathdelegate(m.addition);

            Console.WriteLine(d(10, 20));
            d += m.subtraction;
            d += m.multiplication;
            Console.WriteLine(d(10, 20));
        }
Esempio n. 4
0
        static void Main()
        {
            math m = new math();

            mathdelegate d = new mathdelegate(m.addition);

            d(10, 20);
            d += m.subtraction;
            d += m.multiplication;
            d(100, 200);
        }