I have an array of ints. I want to get the second highest number in that array. Is there an easy way to do this?
Try this (using LINQ):
int secondHighest = (from number in numbers orderby number descending select number).Skip(1).First();
1.4m articles
1.4m replys
5 comments
57.0k users