Giving parameters to a Func.
Hey, I am trying to make a command line that gets a string and the I call a function based off of said string. I am trying to use dictionaries because I think that'll be better than a super long list of if statements. But, I have run into an issue where I cannot figure out how to give a Funt parameters. Here's the code:
My question is, how do I modify this code so I can add parameters to
TestMethod
and still call it in this way. Or even if there is a better/cleaner way to build something like this I'll look into what ever information I'm provided. Thank you so much for any and all assistance.2 Replies
Seeing how it's a
Func<string>
, it's going to be an equivalent of string Func()
So no parameters
If you want to add params to it, sure, go ahead
And you can just... call it
Angius
REPL Result: Success
Console Output
Compile: 514.552ms | Execution: 86.921ms | React with β to remove this embed.