Tell me more ×  I got an event from special API I'm working
with, the event I'm working with is defined as  public event
EventHandler<QuoteEventArgs> OnQuote  public class
QuoteEventArgs : EventArgs  so what I'm trying to do is attach a
method to run when I got a new Quote listening to this event.
so what I do is:  myInstance.OnQuote += new
EventHandler<QuoteEventArgs>(doThis);  And the method is defined
as:  public void doThis(object sender, QuoteEventArgs e){
//code here..   The error I get is:  Cannot implicity convert
type 'System.EventHandler<MT4API.QuoteEventArgs>' to
'System.EventHandler'  but I don't seem to have a special
eventHandler on the API either, so not quite sure how to make
that work.  share|improve this question There are two classes
called System.EventHandler – one is generic and one isn't. Are
you sure the OnQuote event is using the generic one? – 
millimoose Dec 8 '11 at 22:31 You might still be using a
different version of the library than the one that's documented.
(One from before C