What is the VB.NET equivalent of this C # Razor syntax?

Stephen Sanderson's MVC 3 on page 185 below shows that the following expression is used to display paging links.

@Html.PageLinks(Model.Paginginfo, x=> Url.Action("List", new {page = x})) 

What is the equivalent of VB.NET? I am stuck on lambda bit x url.

+4
source share
1 answer

In VB.NET, lambda should be equivalent to this:

 Function(x) Url.Action("List", New With { .Page = x }) 

Additional information on VB.NET can be found on MSDN:

+4
source

Source: https://habr.com/ru/post/1383654/


All Articles