Answer by gfsdfsdf for Weak event handler model for use with lambdas
I have been looking for a solution for a long time and most use nasty reflection but Benjohl's answer is great. I have tweaked it to add support for non-generic EventHandler,...
View ArticleAnswer by Mark for Weak event handler model for use with lambdas
If you head over to CodePlex there's a project called Sharp Observation in which the author has built a good weak delegate provider, implemented in MSIL. Fast, flexible, easy to use: e.g....
View ArticleAnswer by Stefan Dragnev for Weak event handler model for use with lambdas
Dustin Campbell's approach is already excellent. The only thing left, save a solution integrated into .NET, is a really simple way to create really generic weak event handlers:...
View ArticleAnswer by Benjol for Weak event handler model for use with lambdas
'The' answer (Read more below if you want to see how I got to this solution) Usage, given a control with a vanilla MouseDown event, and a specific EventHandler<ValueEventArgs> ValueEvent event:...
View ArticleWeak event handler model for use with lambdas
OK, so this is more of an answer than a question, but after asking this question, and pulling together the various bits from Dustin Campbell, Egor, and also one last tip from the...
View Article
More Pages to Explore .....