2

I am pretty new to VB.NET - and I'm struggling to convert the signature of the method in the following code snippet. The Expression<...>> bit.

Thanks in advance.

 [QueryInterceptor("Orders")]
 public Expression<Func<Orders,bool>> OnQueryOrders()
 {
     return o => o.Customer.ContactName == 
         HttpContext.Current.User.Identity.Name          
 }
Mitchel Sellers
  • 62,228
  • 14
  • 110
  • 173
Eric Nelson
  • 328
  • 1
  • 3
  • 9

1 Answers1

4
Public Function OnQueryOrders() As Expression(Of Func(Of Orders, Boolean))
Lou Franco
  • 87,846
  • 14
  • 132
  • 192