Click here to Skip to main content
15,916,398 members
Home / Discussions / C#
   

C#

 
GeneralRe: Date Comparison Pin
tatchung20-Nov-05 16:03
tatchung20-Nov-05 16:03 
QuestionHow to exact the tsk Pin
activesync20-Nov-05 13:53
activesync20-Nov-05 13:53 
QuestionNeed help with reading image from stream using GDI+ Pin
serguey_haftrige20-Nov-05 13:41
serguey_haftrige20-Nov-05 13:41 
AnswerRe: Need help with reading image from stream using GDI+ Pin
Curtis Schlak.20-Nov-05 14:26
Curtis Schlak.20-Nov-05 14:26 
GeneralRe: Need help with reading image from BUFFER using GDI+ Pin
serguey_haftrige22-Nov-05 15:49
serguey_haftrige22-Nov-05 15:49 
QuestionC# Process UseShellExecute query Pin
Kuira20-Nov-05 12:30
Kuira20-Nov-05 12:30 
AnswerRe: C# Process UseShellExecute query Pin
Xiangyang Liu 刘向阳20-Nov-05 13:37
Xiangyang Liu 刘向阳20-Nov-05 13:37 
QuestionHashtable - Get picked values Pin
Seraphin20-Nov-05 11:23
Seraphin20-Nov-05 11:23 
I have a Hashtable with following values:

[Key][Value]


[$0001][1]
[$0002][0]
[$0003][1]
[$0004][0]
[$0005][0]
[$0006][0]
[$0007][1]
[$0008][1]
[$0009][1]
[$0010][1]


Now I need all Keys with value "1". It is possible to extract them without a for loop?


My main problem is a recursion. This hashtable is used 4 times and I have to check each key. Hashtable contains ~800 entries, what means 800^4 possibilites. Big overhead.

Simple example:

[$0001][00]
[$0002][01]
[$0003][04]
[$0004][01]
[$0005][02]

Recursion - check element and its connectors

1. 0001 - my for loop checks all connectors -> Result: 0002 and 0004 (because Key is 01).
2. now check the connectors for connectors (we have 0002 and 0004)
3. 0002 has 0005(key = 02)
and so on .....


Is there a way for a fast progress in speed? Thanks for all tips.



AnswerRe: Hashtable - Get picked values Pin
Christian Graus20-Nov-05 11:36
protectorChristian Graus20-Nov-05 11:36 
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 
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 

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.