Quick question about Events

What's the difference between those:

public delegate void DataEventHandler(object sender, EventArgs e); public event DataEventHandler DataEvent; DataEvent(data, new EventArgs()); 

and

public event EventHandler DataEvent; DataEvent(data, new EventArgs()); 

Both seem to do the same thing

by Lausiv_Edisn via /r/csharp

Leave a Reply