name appears on the left side of the += operator. On the right side the keyword
event handler is given, together with the eventhandler keyword and the qualified
name of the handler to add. The compiler will ensure that the parameter profiles
of the delegate and the handler match.
1 2 3 4 5 | private void AddStaticHandler() { this.MyDelegate += eventhandler (Subscriber::MyHandler); } |
Best Regards,
Hossein Karimi
No comments:
Post a Comment