public void Add(int a, int b) { var result = a + b; System.Console.WriteLine(result); if (result % 2 != 0) { OddNumberEvent?.Invoke(); OddNumberDelegate?.Invoke(); } }
private void OddWins() { OddNumber?.Invoke(this, new EventArgs()); }