How do I use LINQ to query an array of numbers to get the highest value between start index and end index.
int[] numbers = { 1, 2, 3, 4 ,5 ,6 ,7 ,8 ,9 ,8 ,7 ,6, 5 ,4 ,3 ,2 ,1};
I want to find the Max value between numbers[5] and numbers[8]
Thanks
Mike
You need to skip four elements, then take the max of the next four (#5..#8, inclusive):