Linq Example 25 - FirstOrDefault

11:22 PM
Linq Query:

int[] intNums = { };

            var myNums = intNums.FirstOrDefault();
            Console.WriteLine(myNums);

            //Output 0

Output:
0

0 comments:

Post a Comment