Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!

following situation:

I have a LinkedList<temp> with 10000 member objects.

Struct Temp consists of fields Max, Min, Avg and some other.

At some points I need the whole information of max, min, avg taken out and stored in a single dimension array ex: Double[] min.


Currently I'm thinking of copyTo temp[] and then use for loop to extract the min, max and store them to their arrays. But this feels wrong and I keep thinking that theres a easier way.

Is there an easier way?
Posted
Updated 29-Aug-10 23:58pm
v4
Comments
CPallini 30-Aug-10 6:03am    
Couldn't you use directly the result of copyTo? I mean couldn't you change the code expecting the single dimension arrays?

1 solution

there is min and max method which you can use
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900