While implementing a Guard pattern for my current project I came across following strange behavior.
This code causes a reference problem to occur. It seems like compiler can’t tell the difference between the Func & string overloads. I have absolutely no idea why this is the case.
Doing this fixes the issue:
If anyone reading this; knows why. Please explain in the comments section.