Skip to content

Instantly share code, notes, and snippets.

@anelson
Created August 31, 2010 08:54
Show Gist options
  • Save anelson/558754 to your computer and use it in GitHub Desktop.
Save anelson/558754 to your computer and use it in GitHub Desktop.
Events vs Typed Delegates vs Generic Delegates, Kyiv 2010
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