Mega Code Archive

 
Categories / VB.Net Tutorial / LINQ
 

Quantifiers Any

Imports System.IO Imports System.Reflection Imports System.Linq Imports System.Xml.Linq Public Class MainClass    Public Shared Sub Main         Dim words() As String = {"this", "is", "a", "test"}         Dim iAfterE = Aggregate word In words _                       Into Any(word.Contains("th"))         Console.WriteLine("There is a word that contains in the list that contains 'ei': " & iAfterE)    End Sub End Class