Boris Callens
Boris Callens

Reputation: 93417

Lambda's in VB.net?

In C# I would simply do this:

myIEnumerable.Where(i=>i.ReturnsABool()).any();

How would I do that in VB.net? I'm stuck on how to formulate the lambda..

Upvotes: 8

Views: 3693

Answers (1)

JaredPar
JaredPar

Reputation: 755587

Try this

myIEnumerable.Where(Function (i) i.ReturnsABool()).Any()

Upvotes: 13

Related Questions