How to write a VB.Net Lambda expression

The lambda syntax isn’t that much different than creating a regular delegate.

If creating a lambda which has a return value, use Function. Otherwise if you’re creating one that doesn’t, use Sub.

Dim _new = orders.Select(Function(x) x.Items > 0)

Dim action As Action(Of Item) = Sub(x) Console.WriteLine(x.Items)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)