Lambda expressions - Lambda expressions and anonymous functions - C# reference | Microsoft Learn
6
公开标注数
6
参与人数
2026-07-22 09:59:31
首次 Whisper
本页的公开 Whisper
划选高亮2026-07-22 16:23:31
原文高亮摘录
“Starting with C# 12, you can provide default values for explicitly typed parameter lists.”
Whisper 随想笔记
Nice, finally no more overloads just for optional lambda params.
划选高亮2026-07-22 13:20:31
原文高亮摘录
“You can't use statement lambdas to create expression trees.”
Whisper 随想笔记
Good thing I mostly use expression lambdas for EF queries anyway.
划选高亮2026-07-22 13:11:31
原文高亮摘录
“You can't use statement lambdas to create expression trees.”
Whisper 随想笔记
Wait, so my multi-line lambda can't be an expression tree? That explains some errors.
划选高亮2026-07-22 10:17:31
原文高亮摘录
“Use the lambda declaration operator => to separate the lambda's parameter list from its body.”
Whisper 随想笔记
Every time I see => I just think of a rocket ship flying to the right, haha.
划选高亮2026-07-22 10:08:31
原文高亮摘录
“Use the lambda declaration operator => to separate the lambda's parameter list from its body.”
Whisper 随想笔记
Wait, that's it? I thought the arrow actually did something magical under the hood.
划选高亮2026-07-22 09:59:31
原文高亮摘录
“Use the lambda declaration operator => to separate the lambda's parameter list from its body.”
Whisper 随想笔记
Can't live without => honestly, best thing since sliced bread for callbacks.
分享本页 Whisper
短链接
https://domwhisper.com/s/35d1b2f384a1嵌入代码
<iframe src="https://domwhisper.com/embed/35d1b2f384a1" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>