예제 #1
0
        public void Add(int a, int b)
        {
            var result = a + b;

            System.Console.WriteLine(result);
            if (result % 2 != 0)
            {
                OddNumberEvent?.Invoke();
                OddNumberDelegate?.Invoke();
            }
        }
예제 #2
0
 private void OddWins()
 {
     OddNumber?.Invoke(this, new EventArgs());
 }