using System;
public class Program
{
public static void Main()
Console.WriteLine("Hello World");
dynamic h = new QH();
Func<Q, int> d = h.Handle;
}
interface IQuery<T> {}
interface IQueryHandler<TQuery, T>
where TQuery : IQuery<T>
T Handle(TQuery query);
class Q : IQuery<int> {}
class QH : IQueryHandler<Q, int>
public int Handle(Q query)
return 5;