Hi
I know what an event is and what a method is (duh!) but something just came into my mind - one of those stupid questions.
I know that Events are pretty useful when raising an event from a thread that did not create the event or does not contain certain controls (UI controls for example)
but arent events almost the same as methods?
you have a method like so:
You can also have an event that does the same thing - so really, what is the difference between calling a method or raising an event?Code:private void DoShowHello()
{
MessageBox.Show("Hi!");
}
To me, Events are probably more thread safe than calling a method from which the method does not exist, in other words - calling a method from another thread. Events are safer when talking about threading - am I correcy?
