开发者

Lambda's in VB.net?

开发者 https://www.devze.com 2022-12-17 19:17 出处:网络
In C# I would simply do this: myIEnumerable.Where(i=>i.ReturnsABool()).any(); How wou开发者_Go百科ld I do that in VB.net?

In C# I would simply do this:

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

How wou开发者_Go百科ld I do that in VB.net? I'm stuck on how to formulate the lambda..


Try this

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

精彩评论

暂无评论...
验证码 换一张
取 消