See the Max p. Elevation)) peaks. Add(current) I suggest you to read a little about lambda expressions to better understand how this sintax works.
See the Max usage to find the max Elevation: if (current. Elevation == range. Max(p => p.
Elevation)) peaks. Add(current); I suggest you to read a little about lambda expressions to better understand how this sintax works.
1 For suggesting the lambda expressions reading. – user736619 May 24 at 13:57 I'll follow your suggestion now. Thanks.
– JackN May 24 at 13:58 Also this thread is very good to understand why lambdas are a powerfull thing: stackoverflow. Com/questions/167343/…. – ErickPetru May 24 at 14:04.
Specify the property you want the maximum of: if (current. Elevation == range. Max(p => p.
Elevation))..
I need to find the tallest peaks in a given latitude and longiture. I'm trying to modify this example to work with class Peak but don't understand how to use . Max on IEnumerable rather than IEnumerable.
This is my first time using LINQ. How do I find the Max Elevation in IEnumerable range?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.