Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做这个:
class Foo { static Func<string> sRunner; Func<string> _runner; public Foo(Func<string> runner){ _runner = runner ?? sRunner ?? () => "Hey!"; } }
我在 lambda 上得到一个“无效的表达式”术语。可以内联修复吗?
_runner = runner ?? sRunner ?? (() => "Hey!");