Adding event handler and expression trees?

Well to start with you need to be very clear in your mind the difference between events and delegate fields We can't tell what GenericEvent is in the first case, but if it really does refer to an event, that will be calling add_GenericEvent or whatever the appropriate underlying metadata gives. Compare that with the second case, where you really want to call Delegate. Combine cast the result back to EventHandler.

Well to start with you need to be very clear in your mind the difference between events and delegate fields. We can't tell what GenericEvent is in the first case, but if it really does refer to an event, that will be calling add_GenericEvent or whatever the appropriate underlying metadata gives. Compare that with the second case, where you really want to call Delegate.

Combine, cast the result back to EventHandler and then assign it back to GenericEvent. In both cases the C# compiler is using syntactic sugar really - and you need to unpick that sugar to create the relevant expression tree.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions