Linq Example 32 - Count

12:27 AM
Linq Query:

//count
            int[] intNumbers = { 1, 2, 3, 55, 99, 74, 102 };

            int total = intNumbers.Count(); //Total 7 Items

            Console.WriteLine(total);

//

Output:
7

0 comments:

Post a Comment