Does lambda () => 1 result in object creation at run time each time it is passed as an argument?

后端 未结 0 530
眼角桃花
眼角桃花 2020-12-21 09:07

My understanding was that all non-capturing lambdas shouldn\'t require object creation at use site, because one can be created as a static field and reused. In principle, th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题