LINQ query with Enumerable / Lambdas : Lambda « LINQ « VB.Net






LINQ query with Enumerable / Lambdas

   


Module Program
  Sub Main()
    Dim currentVideoGames() As String = {"A", "B", "this is a test", "C", "D", "E"}


    Dim subset = Enumerable.Where(currentVideoGames, Function(game) game.Length > 6).OrderBy(Function(game) game).Select(Function(game) game)
    For Each game In subset
      Console.WriteLine("Item: {0}", game)
    Next


  End Sub


End Module

   
    
    
  








Related examples in the same category

1.Lambda expression syntax
2.Lambda with No Args
3.Lambdas with Multiple Params
4.Use Lambda Function to wrap a query