简体   繁体   English

什么是这个C#Razor语法的VB.NET等价物?

[英]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. 在Steven Sanderson的MVC 3书中,底部是p185,下面的表达式用于呈现分页链接。

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

What is the VB.NET equivalent? 什么是VB.NET等价物? I am stuck on the x url lambda bit. 我被困在x url lambda位上。

In VB.NET the lambda should be equivalent to this: 在VB.NET中,lambda应该等效于:

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

You can refer to MSDN for more information about VB.NET's: 有关VB.NET的更多信息,请参阅MSDN:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM