Looking for Hash table with sor and search method

  • Thread starter Thread starter sam
  • Start date Start date
S

sam

I need to store and sort a list of key/value items. The key is a date (year
and month) like this yyyymm and the value is a string.
The key must not be unique and accepts doublon.
With this Table I need to sort by key (date) and make a search for
extracting some items.
Wich collection can do that ?
Thanks for help.
sam
 
sam said:
I need to store and sort a list of key/value items. The key is a date (year
and month) like this yyyymm and the value is a string.
The key must not be unique and accepts doublon.
With this Table I need to sort by key (date) and make a search for
extracting some items.
Wich collection can do that ?
 
Ben Voigt said:
SortedList<TKey,TValue>
SortedList<TKey,TValue> accept only UNIQUE key.
My needs is a sorted list that doesn't request unique key and and int for
the key and string for value.
Who can direct me for the good collection ?

Sam
 
sam said:
SortedList<TKey,TValue> accept only UNIQUE key.
My needs is a sorted list that doesn't request unique key and and int for
the key and string for value.

Use buckets.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top