public static void Main()
Console.WriteLine("Hello World");
void Foo<T>(T t) where T : IMyInterface1
void Foo<T>(T t) where T : IMyInterface2
public interface IMyInterface { }
public interface IMyInterface1 : IMyInterface { }
public interface IMyInterface2 : IMyInterface { }