示例#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));
        }
        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);
        }
示例#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));
        }
        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);
        }