Here is a sample line of code that is often generated by Visual Studio in an MVC type of application:
@Html.DisplayFor(modelItem => item.LastName)
- I understand how razor works (the
@) - I understand Html is an object with static helper functions, like
DisplayFor() - I understand
item.LastNameas this loosely represents a row and column from data/model
...but what the heck is modelItem =>? Back in my day, => used to be an operator that was evaluated to a Boolean value. What is this sorcery?