You could pass Compose
the parameter too, and have it actually evaluate the function; it should be able to infer the parameter type in that case. (You might need to still specify the return type, though.)
Other than that, no, there's no way to infer things like this in C#.