is there way how to get name ov event from Lambda expression like with property ( Retrieving Property name from lambda expression ) ?
Thanks
is there way how to get name ov event from Lambda expression like with property ( Retrieving Property name from lambda expression ) ?
Thanks
Yes, it's just like getting the property name, but you must do it in the class that defines the event.
Enjoy.
No. C# lambdas don't support events, so there is no way of representing this. You'll have to use reflection.