praeclarum / Bind

A small but powerful C# library for data binding
Other
204 stars 34 forks source link

handling non eventhandler event types #1

Closed MihaMarkic closed 10 years ago

MihaMarkic commented 10 years ago

Here is a way to handle non-EventHandler event types, basically any event type. It uses a dynamically compiles lambda to consume the event and then it invokes given Action.

praeclarum commented 10 years ago

Oh this is great! I'll take the merge, but need to hack it up a bit to make sure everything still works on iOS. Thank you!

MihaMarkic commented 10 years ago

You're welcome. Let me know. I didn't tested it very much so far but it seems working.

praeclarum commented 10 years ago

I seem to have broken it when upgrading the reflection code to .NET 4.5. I wonder if you wouldn't mind having a second look? There is a unit test now for it.