I am trying to create this simple interface. I want it somehow to be able to fire an event. This is what I have till now (doesn't compile, just my thoughts)
public interface IAsyncSearch<TTermType, TResultsEventType>
where TResultsEventType:delegate
{
event TResultsEventType SearchCompletedEvent;
void SearchAsync(TTermType term);
}
Is something similar even possible? I know that a type is expected in the where statement.