0

What is lambda in C# =>

Just started using xamarin but no idea what a lambda is

11th Aug 2020, 10:13 PM
Christian Khalil
Christian Khalil - avatar
2 Respuestas
+ 3
lambda expression is a convenient way of defining an anonymous (unnamed) function that can be passed around as a variable or as a parameter to a method call. Many LINQ methods take a function (called a delegate) as a parameter.
11th Aug 2020, 11:09 PM
Jella
Jella - avatar
+ 3
Christian Khalil The answer from Koder King is a good high level description. It's not clear from your question if you are learning C# and Xamarin at the same time. I just wanted to clarify some context that lambdas are core within C#, regardless of using Xamarin.
12th Aug 2020, 12:52 AM
David Carroll
David Carroll - avatar