Skip to main content
 首页 » 编程设计

c#之如何将此 linq.expression 从 C# 转换为 VB

2024年02月24日27落叶无声

[QueryInterceptor("Somethings")] 
public Expression<Func<Something, bool>> OnSomethings() 
{ 
    // Code here 
} 

我有一个 View 猜测,查看了 msdn,但没有匹配使用方式的示例。想法?

请您参考如下方法:

<QueryInterceptor("Somethings")> _ 
Public Function OnSomethings() As Expression(Of Func(Of Something, Boolean)) 
    ' Code here 
End Function