public static void SomeMethod <T, V>(IFoo <T, V> instance) { instance.Ev += x => { x.Something(); }; instance.DoInvoke(); }