Converting Between EventHandler and EventHandler
April 15, 2009
Have you ever run into a situation where you need to bridge between code that uses the old custom EventHandler pattern for events and code that wants to use the new parameterized EventHandler<> code style? EventHandler style delegates are not assignment compatible with EventHandler<> delegates. You’ll run into this if you’re writing a new API [...]
Tags: .NET, C#, EventHandler, generics, Programming, tricks
Filed under: Programming |
Comments Off