I’m fairly new at C# and MVC and have used lambdas on certain occasions, such as for anonymous methods and on LINQ.
Usually I see lambda expressions that look someth
i think it's about the foreach loop. example:
@foreach(var item in model)
{
@html.displayfor(model => item.firstName)
}
var item needs to be used because each item in the sequence is an anonymous type.
model => item.firstName means (input parameter) => expression. you can't use the input parameter because we store the current "item" in item.