Here is my class definition for a customized event args
using System;
public class DeserializeEventArgs<T> : EventArgs
{
public DeserializeEventArgs(T deserializeResult)
{
this.DeserializeResult = deserializeResult;
}
public T DeserializeResult
{
get;
private set;
}
}
And I want to do this in the code where I want to fire this event
public event EventHandler<DeserializeEventArgs<T>> DeserializeEvent;
And it will not compile (red line under T says no type found). Not sure if this is the right way of using it, anyone has experience please share some idea.
Thank you
I believe when you declare your event, you need to give it a type to use, just like you are doing with the EventHandler
needs to be