private void BuildInDelegatesExample_OddNumberEvent(object sender, OddNumberEventArgs e) { CountOddNumbers(); }
staic void message(object sender, OddNumberEventArgs e) { Console.WriteLine("Event Executed : {0} is an Odd Number", e.sum); }
private void BuildInDelegatesExample_OddNumberEvent1(object sender, OddNumberEventArgs e) { Console.WriteLine("** Odd number detected **: " + e.Result); }
private void BuildinDelegatesExample_OddNumberEvent1(object sender, OddNumberEventArgs e) { Console.WriteLine($"** Wykryto liczbÄ™ **: {e.Result}"); }