Dim last As Integer = numbers.Last(Function(num) num > 80) ‘ Display the result. Console.WriteLine(last) ‘ This code produces the following output: ‘ ‘ 87 Remarks. The Last(IEnumerable, Func) method throws an exception if no matching element is found in source.
https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.last?view=net-7.0

