Click here to Skip to main content
15,848,724 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextField control issue Pin
Blubbo2-Jul-07 4:32
Blubbo2-Jul-07 4:32 
GeneralRe: RichTextField control issue Pin
Luc Pattyn2-Jul-07 4:46
sitebuilderLuc Pattyn2-Jul-07 4:46 
AnswerRe: RichTextField control issue Pin
Blubbo2-Jul-07 5:11
Blubbo2-Jul-07 5:11 
GeneralRe: RichTextField control issue Pin
Blubbo2-Jul-07 6:06
Blubbo2-Jul-07 6:06 
GeneralRe: RichTextField control issue Pin
Luc Pattyn2-Jul-07 6:25
sitebuilderLuc Pattyn2-Jul-07 6:25 
GeneralRe: RichTextField control issue Pin
Blubbo2-Jul-07 6:29
Blubbo2-Jul-07 6:29 
Questionsort hashtable Pin
arkiboys2-Jul-07 3:51
arkiboys2-Jul-07 3:51 
AnswerRe: sort hashtable Pin
Luc Pattyn2-Jul-07 4:04
sitebuilderLuc Pattyn2-Jul-07 4:04 
Hi,

your ArrayList CacheHashTablesForwardsArraySorted is NOT sorted:
1) the Keys property of a hashtable returns an ICollection containing all the keys, but
MSDN clearly states "The order of the keys in the ICollection is unspecified"
2) giving it a name ending on "Sorted" doesnt do it either.

So you must explicitly sort your ArrayList.
Afterwards, you can enumerate the sorted list, and use the hashtable to look up the
corresponding values.

The alternative is to use a SortedList instead of a HashTable; that one does it all.

Smile | :)


GeneralRe: sort hashtable Pin
arkiboys2-Jul-07 5:11
arkiboys2-Jul-07 5:11 
GeneralRe: sort hashtable Pin
Luc Pattyn2-Jul-07 5:21
sitebuilderLuc Pattyn2-Jul-07 5:21 
AnswerRe: sort hashtable Pin
leppie2-Jul-07 4:57
leppie2-Jul-07 4:57 
Questionhow to change this in C# ? Pin
LyBun2-Jul-07 3:34
LyBun2-Jul-07 3:34 
AnswerRe: how to change this in C# ? Pin
Colin Angus Mackay2-Jul-07 3:48
Colin Angus Mackay2-Jul-07 3:48 
AnswerRe: how to change this in C# ? Pin
Luc Pattyn2-Jul-07 4:08
sitebuilderLuc Pattyn2-Jul-07 4:08 
GeneralRe: how to change this in C# ? Pin
Martin#2-Jul-07 4:19
Martin#2-Jul-07 4:19 
GeneralRe: how to change this in C# ? Pin
Luc Pattyn2-Jul-07 4:29
sitebuilderLuc Pattyn2-Jul-07 4:29 
GeneralRe: how to change this in C# ? Pin
Martin#2-Jul-07 4:32
Martin#2-Jul-07 4:32 
GeneralRe: how to change this in C# ? Pin
Luc Pattyn2-Jul-07 4:54
sitebuilderLuc Pattyn2-Jul-07 4:54 
QuestionHow to read the words from a pdf? Pin
Tomerland2-Jul-07 3:19
Tomerland2-Jul-07 3:19 
AnswerRe: How to read the words from a pdf? Pin
CPallini2-Jul-07 4:43
mveCPallini2-Jul-07 4:43 
QuestionDataGrid paging not working Pin
Jax_qqq2-Jul-07 2:26
Jax_qqq2-Jul-07 2:26 
QuestionLine code Pin
merwa2-Jul-07 2:16
merwa2-Jul-07 2:16 
AnswerRe: Line code Pin
Jimmanuel2-Jul-07 3:36
Jimmanuel2-Jul-07 3:36 
QuestionTCP channel v/s HTTP channel Pin
amitcoder832-Jul-07 1:35
amitcoder832-Jul-07 1:35 
AnswerRe: TCP channel v/s HTTP channel Pin
originSH2-Jul-07 3:40
originSH2-Jul-07 3:40 

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.