// CS0411: The type arguments for method `Foo.DoSomething(System.Func)' cannot be inferred from the usage. Try specifying the type arguments explicitly // Line: 15 using System; public class Foo { public void DoSomething (Func valueExpression) { } } public class Bar { protected void DoAnything (U value) { new Foo ().DoSomething (value); } }