Enumerable.Any Determines whether a sequence contains any elements.
Imports System
Imports System.Linq
Imports System.Collections.Generic
Public Class Example
Public Shared Sub Main()
Dim numbers As New List(Of Integer)(New Integer() {1, 2})
Dim hasElements As Boolean = numbers.Any()
Console.WriteLine(hasElements)
End Sub
End Class