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);
10
Related Articles:
LINQ Min() Method (C#.net)
LINQ Any() Method (C#.net)
LINQ Zip() Method (C#.net)
LINQ Select() Method (C#.net)
LINQ Contains() Method (C#.net)
LINQ SkipWhile() Method (C#.net)
LINQ TakeWhile() Method (C#.net)
LINQ Distinct() Method (C#.net)
LINQ Concat() Method (C#.net)
0 comments:
Post a Comment