using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
namespace AbundantCode
{
internal class Program
{
// How to Get the Max Value from a List of Integer using LINQ Query in C#?
private static void Main(string[] args)
{
int[] Marks = new int[] { 1, 2, 8, 3, 10, 25, 4 };
// Get Max using LINQ Query
var result = (from m in Marks
select m).Max();
Console.WriteLine(result);
Console.ReadLine();
}
}
}