Using OneNote
Ingo Rammer: new member of the Regional Director Program

More about delegates

Don Box writes more about delegates:

With the first entry he explains the differences of these declarations:

public delegate void EventHandler1<S>(S sender, EventArgs args);
public delegate void EventHandler2<S,E>(S sender, E args) where E: EventArgs;
Of course the second declaration allows using strong types that are derived from EventArgs. The second post explains this issue more detailed. Don gives more information about delegate compatibility: constraints today.   



Feed You can follow this conversation by subscribing to the comment feed for this post.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)