Lambda Expression
noun
say it: “LAM-duh ek-SPRESH-un” /ˈlæmdə ɪkˈsprɛʃən/
A short, unnamed method written with =>, such as p => p.UnitPrice > 10.
What is Lambda Expression in C#?
Lambda Expression — A compact function value written with the => operator.
class LabelFormatter
{
Func<string, string> uppercase = text => text.ToUpper();
}
In a sentence
- “The lambda p => p.UnitPrice < 10 tells Where which products to keep.”
Level: Freelancer · More C# terms at this level
Updated