+92 332 4229 857 99ProjectIdeas@Gmail.com

LINQ Max() Method (C#.net)




LINQ MAX() Method (C#.net):
The following code shows you how to find maximum value from array using LINQ Max() method.

Code

int[] array = { 2, 1, 2, 3, 7, 5, 10, 9 };

var query = array.Max();

Console.WriteLine(query);

Output of the program is: 
10




Related Articles:




0 comments: