Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: Hashtable - Get picked values Pin
Seraphin20-Nov-05 11:51
Seraphin20-Nov-05 11:51 
GeneralRe: Hashtable - Get picked values Pin
Christian Graus20-Nov-05 11:53
protectorChristian Graus20-Nov-05 11:53 
GeneralRe: Hashtable - Get picked values Pin
Seraphin20-Nov-05 12:01
Seraphin20-Nov-05 12:01 
GeneralRe: Hashtable - Get picked values Pin
Christian Graus20-Nov-05 12:10
protectorChristian Graus20-Nov-05 12:10 
GeneralRe: Hashtable - Get picked values Pin
Seraphin20-Nov-05 12:17
Seraphin20-Nov-05 12:17 
AnswerRe: Hashtable - Get picked values Pin
Leslie Sanford20-Nov-05 13:16
Leslie Sanford20-Nov-05 13:16 
GeneralRe: Hashtable - Get picked values Pin
Seraphin20-Nov-05 14:24
Seraphin20-Nov-05 14:24 
GeneralRe: Hashtable - Get picked values Pin
Leslie Sanford20-Nov-05 17:28
Leslie Sanford20-Nov-05 17:28 
Ok, I'm still mulling this over, but would it help if the values were sorted?

Say you have this:

$1 [0]
$2 [1]
$3 [2]
$4 [1]
$5 [2]

Then you sort them by values:

$1 [0]
$2 [1]
$4 [1]
$3 [2]
$5 [2]

What this buys you is that as soon as you encounter a value that doesn't equal the value you are currently searching with, you can stop the search for that value. And maybe even continue the search from that point for subconnectors.

Say you are searching with value [1]. You find the connectors $2 and $4. Then you encounter value [2]. You know at that point that you've found all of the connectors for [1].

However, did [1] have a connection to $2? Yes. So since you are already at [2], you can begin the search for $2's subconnectors from right where you are. Same goes for $4, which was also a connector for [1].

Does this help?
GeneralRe: Hashtable - Get picked values Pin
Seraphin21-Nov-05 4:16
Seraphin21-Nov-05 4:16 
QuestionHow can I reference from a string to an objectname? Pin
Slerp20-Nov-05 10:30
Slerp20-Nov-05 10:30 
AnswerRe: How can I reference from a string to an objectname? Pin
serguey_haftrige20-Nov-05 14:11
serguey_haftrige20-Nov-05 14:11 
AnswerRe: How can I reference from a string to an objectname? Pin
Curtis Schlak.20-Nov-05 14:45
Curtis Schlak.20-Nov-05 14:45 
GeneralRe: How can I reference from a string to an objectname? Pin
Slerp21-Nov-05 8:44
Slerp21-Nov-05 8:44 
GeneralRe: How can I reference from a string to an objectname? Pin
Curtis Schlak.21-Nov-05 16:36
Curtis Schlak.21-Nov-05 16:36 
QuestionMFC application migration to C# Pin
jacka199920-Nov-05 8:01
jacka199920-Nov-05 8:01 
AnswerRe: MFC application migration to C# Pin
Judah Gabriel Himango20-Nov-05 8:20
sponsorJudah Gabriel Himango20-Nov-05 8:20 
AnswerRe: MFC application migration to C# Pin
Ray Cassick20-Nov-05 8:29
Ray Cassick20-Nov-05 8:29 
AnswerRe: MFC application migration to C# Pin
jacka199921-Nov-05 9:10
jacka199921-Nov-05 9:10 
QuestionC# Generics question Pin
gnjunge20-Nov-05 7:28
gnjunge20-Nov-05 7:28 
AnswerRe: C# Generics question Pin
André Ziegler20-Nov-05 7:52
André Ziegler20-Nov-05 7:52 
AnswerRe: C# Generics question Pin
Judah Gabriel Himango20-Nov-05 8:21
sponsorJudah Gabriel Himango20-Nov-05 8:21 
GeneralRe: C# Generics question Pin
gnjunge20-Nov-05 8:35
gnjunge20-Nov-05 8:35 
QuestionHow to fill a DataGrid by a DataSet's data Pin
ventomito20-Nov-05 5:55
ventomito20-Nov-05 5:55 
AnswerRe: How to fill a DataGrid by a DataSet's data Pin
Stanciu Vlad20-Nov-05 10:06
Stanciu Vlad20-Nov-05 10:06 
Questionneed to communicate with RS232 cable Pin
djtourist20-Nov-05 5:52
djtourist20-Nov-05 5:52 

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.