Syntax Question: @Html.LabelFor(m => m.UserName)

Viewed 12546

Going from ASP.NET 2.0 (VB) to MVC 3 (C#), I'm very confused about the syntax being used for the View.

@Html.LabelFor(m => m.UserName)

Where did that m come from? My only guess is that it represents the model that is being passed into the view. I tried changing the m to c and it still works fine.

Is the part of the syntax that involves the "=>" more of a MVC, C#, or Razor element?

5 Answers
Related