Skip to content

Instantly share code, notes, and snippets.

@anujb
Created October 2, 2013 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anujb/6788215 to your computer and use it in GitHub Desktop.
Save anujb/6788215 to your computer and use it in GitHub Desktop.
public class EventArgs<T> : EventArgs
{
public T Data { get; set; }
public EventArgs (T data)
{
Data = data;
}
public static EventArgs<T> From (T data)
{
return new EventArgs<T> (data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment