Click here to Skip to main content
15,913,234 members
Home / Discussions / C#
   

C#

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