Exemplo n.º 1
0
        static void Main(string[] args)
        {
            double a = 10;
            double b = 12;

            BinaryNumericOperations op = CalculationService.ShowSum;

            op += CalculationService.ShowMax;

            op.Invoke(a, b);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            double a = 10;
            double b = 12;

            BinaryNumericOperations op = CalculationService.Sum;

            // double result = op(a, b);
            double result = op.Invoke(a, b);

            Console.WriteLine(result);
        }