This topic came up again at work today: jaybaz [MS] WebLog : Safely firing an event:
The safe way is to use the copy-and-test pattern:
void FireSomeEvent()
{
D temp = SomeEvent;
if (temp != null)
{
temp();
}
}
posted by Oskar Austegard at 2:25 PM on Sep 13, 2005
"Safely firing an event"
No comments yet. -