kaizen
Member
- Joined
- Mar 12, 2008
- Messages
- 8
- Programming Experience
- 5-10
I am using a SortedDictionary and have a question about sorting the results on the value rather then the key or a way to get top x results and top x bottom results.
The SortedDictionary has a list of stocks as the Key and list of their percent moves over a time period as the value.
Is a SortedDictionary the best way to do it? I do not have to use a SortedDictionary.
Thanks.
The SortedDictionary has a list of stocks as the Key and list of their percent moves over a time period as the value.
Is a SortedDictionary the best way to do it? I do not have to use a SortedDictionary.
VB.NET:
Dim results As New SortedDictionary(Of String, Double)
For Each kvp As KeyValuePair(Of String, Double) In results
'Get the top x and bottom x reuslts?
Console.WriteLine("{0}, {1}", kvp.Key, kvp.Value)
Next
Thanks.