learn.microsoft.com favicon

Lambda expressions - Lambda expressions and anonymous functions - C# reference | Microsoft Learn

Lambda expressions - Lambda expressions and anonymous functions - C# reference | Microsoft Learn

#25
6
公开标注数
6
参与人数
2026-07-22 09:59:31
首次 Whisper

讨论活跃度

learn.microsoft.com 近 17 周的公开 Whisper

1 活跃天数

最新公开 Whisper

RSS
划选高亮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.

看看大家在 learn.microsoft.com 上划了什么重点

安装 DomWhisper,浏览网页时实时查看 whisper,也可以加入讨论。

获取插件