Element Operators FirstOrDefault : FirstOrDefault « LINQ « VB.Net






Element Operators FirstOrDefault

  

Imports System.IO
Imports System.Reflection
Imports System.Linq
Imports System.Xml.Linq

Public Class MainClass
   Public Shared Sub Main

        Dim numbers As Integer() = {}

        Dim firstNumOrDefault = numbers.FirstOrDefault()

        Console.WriteLine(firstNumOrDefault)

   End Sub


End Class

   
    
  








Related examples in the same category

1.FirstOrDefault Condition
2.Alternative Syntax for FirstOrDefault Condition