Click here to Skip to main content
16,011,447 members
Home / Discussions / C#
   

C#

 
GeneralCasting problem Pin
BrcKcc4-Aug-04 8:19
BrcKcc4-Aug-04 8:19 
Generalconceptual question about cryptography and CAPICOM Pin
pelos4-Aug-04 6:33
pelos4-Aug-04 6:33 
GeneralRe: conceptual question about cryptography and CAPICOM Pin
Heath Stewart4-Aug-04 7:10
protectorHeath Stewart4-Aug-04 7:10 
GeneralRe: conceptual question about cryptography and CAPICOM Pin
pelos5-Aug-04 1:53
pelos5-Aug-04 1:53 
GeneralRe: conceptual question about cryptography and CAPICOM Pin
Heath Stewart5-Aug-04 2:29
protectorHeath Stewart5-Aug-04 2:29 
GeneralSorting in HashTables/SortedLists etc Pin
MrEyes4-Aug-04 6:12
MrEyes4-Aug-04 6:12 
GeneralRe: Sorting in HashTables/SortedLists etc Pin
Heath Stewart4-Aug-04 7:05
protectorHeath Stewart4-Aug-04 7:05 
GeneralRe: Sorting in HashTables/SortedLists etc Pin
scadaguy4-Aug-04 12:09
scadaguy4-Aug-04 12:09 
What you want is a dictionary whose internal structure orders the items by value. The Hashtable performs no ordering. The SortedList performs key ordering. The HashList that was created in the article you referenced performs temporal ordering so it wouldn't help you either. There is no primitive data structure that satisfies this requirement so you'll have to create your own that internally uses both a hashtable and some type of key ordered dictionary for storage. Using both data structures together will give you the ability to order your custom dictionary by value.

When you say that you need to have the functionality of a hashtable did you really mean that a dictionary is sufficient? The reason I ask is because the hashtable is distinquished from other dictionaries because it has O(1) inserts, deletes, and searches. It is impossible to create such a dictionary that is ordered and still performs like a hashtable. If you want your collection ordered by value and to behave like a hashtable then you're out of luck, but to make it behave like a dictionary in general is easy.

I can post an example of this if necessary. But right now it is time to go home!

QuestionHowto write values into a Access DB? Pin
bin_jackson4-Aug-04 6:11
bin_jackson4-Aug-04 6:11 
AnswerRe: Howto write values into a Access DB? Pin
Nick Parker4-Aug-04 6:50
protectorNick Parker4-Aug-04 6:50 
GeneralRe: Howto write values into a Access DB? Pin
bin_jackson4-Aug-04 7:00
bin_jackson4-Aug-04 7:00 
GeneralFolderBrowser crashes with long paths Pin
Lasome4-Aug-04 5:47
Lasome4-Aug-04 5:47 
GeneralRe: FolderBrowser crashes with long paths Pin
Heath Stewart4-Aug-04 5:54
protectorHeath Stewart4-Aug-04 5:54 
GeneralRe: FolderBrowser crashes with long paths Pin
Lasome4-Aug-04 5:59
Lasome4-Aug-04 5:59 
GeneralRe: FolderBrowser crashes with long paths Pin
Nick Parker4-Aug-04 6:10
protectorNick Parker4-Aug-04 6:10 
GeneralRe: FolderBrowser crashes with long paths Pin
Heath Stewart4-Aug-04 7:01
protectorHeath Stewart4-Aug-04 7:01 
Generalrun time properties in icon Pin
aberger564-Aug-04 5:33
aberger564-Aug-04 5:33 
GeneralRe: run time properties in icon Pin
Heath Stewart4-Aug-04 5:49
protectorHeath Stewart4-Aug-04 5:49 
GeneralRe: run time properties in icon Pin
Nick Parker4-Aug-04 5:55
protectorNick Parker4-Aug-04 5:55 
GeneralRe: run time properties in icon Pin
aberger564-Aug-04 6:13
aberger564-Aug-04 6:13 
QuestionC# Socket Problem??? Pin
Korjiro4-Aug-04 5:31
Korjiro4-Aug-04 5:31 
AnswerRe: C# Socket Problem??? Pin
Heath Stewart4-Aug-04 5:52
protectorHeath Stewart4-Aug-04 5:52 
GeneralThumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 4:27
Gambit_Sunob4-Aug-04 4:27 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 5:00
Nigel Savidge4-Aug-04 5:00 
GeneralRe: Thumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 5:18
Gambit_Sunob4-Aug-04 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.