Created
August 31, 2010 08:54
-
-
Save anelson/558754 to your computer and use it in GitHub Desktop.
Events vs Typed Delegates vs Generic Delegates, Kyiv 2010
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo { | |
//Event | |
public event EventHandler UserLoggedIn; | |
//Typed delegate | |
public delegate void UserLoggedInDelegate(); | |
public UserLoggedInDelegate UserLoggedIn { get; set; } | |
//Generic delegate | |
public Action UserLoggedIn { get; set} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment