I want to do this:
class Foo {
static Func<string> sRunner;
Func<string> _runner;
public Foo(Func<string> runner){
_runner = runner ?? sRunner ?? () => "Hey!";
}
}
I get an "invalid expression" term on the lambda. Can that be fixed inline?
_runner = runner ?? sRunner ?? (() => "Hey!");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With