Is the signature compatible DoIt()with Func<string, int>?
Yes it is. It is perfect to convert it to this particular type, for example, for example:
Func<string, int> func = DoIt;
var cachedDoit = Memoize(func);
, , , . DoIt , . , ... .
, LINQ, foo.Select(SomeMethodGroup), . , , .
, # ... , . 7.5.2 # 5, - , , , .