Ashok Padmanabhan
Ashok Padmanabhan

Reputation: 2120

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

In the MVC 3 book by Steven Sanderson on p185 at the bottom, the following expression is used to render the paging links.

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

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

Upvotes: 4

Views: 984

Answers (1)

Ahmad Mageed
Ahmad Mageed

Reputation: 96497

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

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

You can refer to MSDN for more information about VB.NET's:

Upvotes: 4

Related Questions