How can I pass in a func with a generic type parameter?
I like to send a generic type converter function to a method but I can't figure out how to do it. Here's invalid syntax that explains what I like to achieve, the problem is I don't know how to specify the generic type together with my func: public void SomeUtility(Func<T><object,T> converter) { var myType = converter<MyType>("foo"); } Edit (see also my discussion in the comments with Lawrence) : By "generic type converter" I meant I would like to pass in a converter that can convert to any strong type <T> (not object), so the next line in my method could be: var myOtherType = converter