Pass DateTime.Add function as parameter
I have a switch statement that will call a generation function so I don't have to loop for every scenario:
The function needs to be something like this:
However I'm not able to pass the function being non-static. Is there a way to achieve this or a better approach?
The function needs to be something like this:
However I'm not able to pass the function being non-static. Is there a way to achieve this or a better approach?