Beispiel #1
0
        public SimpleMath()
        {
            MathOperation mathOp = SimpleMath.Add;

            mathOp += SimpleMath.Subtract;
            mathOp(5, 3);

            foreach (Delegate del in mathOp.GetInvocationList())
            {
                Console.WriteLine($"Method Name: {del.Method}");
                Console.WriteLine($"Method Name: {del.Target}");
            }
        }