C
Colin McGuire
If I have a routine that handles event A of class B coded in VB.Net
like:
Private Sub handleEventA Handles B.eventA
Debug.WriteLine("eventA handler for class B")
End sub
and then I perform the following three steps
1. Debug.WriteLine("step 1")
2. B.Setsomething=4 'this raises event A in class B
3. Debug.WriteLine("step2")
The output window in my IDE would show the following:
step1
eventA handler for class B
step2
My question is is this guaranteed, is this how the event model works,
or put anotherway, are the events guaranteed to be raised
synchronously?
Thank you
Colin
like:
Private Sub handleEventA Handles B.eventA
Debug.WriteLine("eventA handler for class B")
End sub
and then I perform the following three steps
1. Debug.WriteLine("step 1")
2. B.Setsomething=4 'this raises event A in class B
3. Debug.WriteLine("step2")
The output window in my IDE would show the following:
step1
eventA handler for class B
step2
My question is is this guaranteed, is this how the event model works,
or put anotherway, are the events guaranteed to be raised
synchronously?
Thank you
Colin