Dim sites() As String = {"Stack Overflow", "Super User", "Ask Ubuntu", "Hardware Recommendations"} Dim query = From x In sites Where x.StartsWith("S") ' result = "Stack Overflow", "Super User"
查询将是包含Stack Overflow和的可枚举对象Super User。x查询中的迭代变量将存储在每个由byWhere子句检查的对象中。