FirstOrDefault : FirstOrDefault : LINQ C# Source Code


Custom Search

C# Source Code » LINQ » FirstOrDefault »

 

FirstOrDefault








    
 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class MainClass {
    public static void Main() {
        int[] numbers = { };

        int firstNumOrDefault = numbers.FirstOrDefault();

        Console.WriteLine(firstNumOrDefault);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo LINQ
» FirstOrDefault