是否有可能在VB.NET的For Each循环中有类似于SQL’WHERE’子句的东西? I.E. FOR EACH event IN events 'WHERE eventdate=getdate NEXT 在LINQ它将是(.NET 3.5或更高版本) For Each event in events.Where(Function(x) x.even
I.E.
FOR EACH event IN events 'WHERE eventdate=getdate NEXT在LINQ它将是(.NET 3.5或更高版本)
For Each event in events.Where(Function(x) x.eventdate = getdate) 'Process event Next
和非Linq(.Net 2.0或更低版本)
For Each event in events If event.eventdate = getdate Then 'Process event End If Next