Recently a co-worker of mine (Lou, smart guy… (Lou, your shameless plug)) needed to test a UI control that raised an event upon certain conditions. In order to handle this event he needed to have some way to trap that it was raised.
The solution he came up with was simple and elegant.., use an anonymous delegate.
Here is an example
I thought this was pretty cool.
04-23-2007 12:26 PM