public delegate void SecondChangedHandler(
object clock,
TimeInfoEventArgs timeInformation);
public event SecondChangedHandler SecondChanged;
I have written a clock based on this article. Now if i remove the event keyword i get the same result, so what does event really do?
The event
keywords means only methods on the instance that hosts the SecondChanged field can invoke it. External attempts will fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With