How is it working when im passing only 2 arguments
List.cshtml
@Html.PageLinks(Model.PagingInfo, x => Url.Action("List", new { page = x }))
Into this method? PagingHelpers.cs
public static MvcHtmlString PageLinks(this HtmlHelper html,
PagingInfo pagingInfo,
Func<int, string> pageUrl)
The key here is in this part of the method signature:
this HtmlHelper html. Thethisindicates that the method is an extension method on an instance ofHtmlHelper.So the
HtmlHelper htmlsupplied to the method is the localHtmlproperty.