Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>> so that there is no way to create a Func<void>

Does Func<Action> not achieve what you are after?



Func<Action> would be a function that takes no arguments and returns an Action. The desire is to be able to specify void as the return type of a Func, so that you can use Funcs for all callbacks, instead of having to use Funcs for callbacks that return a value and Actions for callbacks that don't.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: