Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
QuestionC# Generic Dictionary ordered by Value: is it really ordered ? Pin
BillWoodruff2-Nov-13 8:05
professionalBillWoodruff2-Nov-13 8:05 
AnswerRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
harold aptroot2-Nov-13 8:23
harold aptroot2-Nov-13 8:23 
GeneralRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
BillWoodruff2-Nov-13 18:43
professionalBillWoodruff2-Nov-13 18:43 
AnswerRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
TnTinMn2-Nov-13 17:28
TnTinMn2-Nov-13 17:28 
GeneralRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
BillWoodruff2-Nov-13 18:48
professionalBillWoodruff2-Nov-13 18:48 
GeneralRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
TnTinMn3-Nov-13 10:50
TnTinMn3-Nov-13 10:50 
AnswerRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
jschell4-Nov-13 8:05
jschell4-Nov-13 8:05 
AnswerRe: C# Generic Dictionary ordered by Value: is it really ordered ? Pin
Keith Barrow5-Nov-13 2:22
professionalKeith Barrow5-Nov-13 2:22 
Hi Bill, not been here for a while.

I'd turn the argument on it's head: Dictionaries aren't meant to be ordered. Practically, it may be (insertion order/ key order? - I haven't checked), but by using the plain, generic dictionary, you are declaring an object that is unordered. Therefore "relying" on any inherent ordering is semantically inappropriate. There are generic OrderedDictionary and SortedDictionary types that might semantically fulfil what is required and not have the ambiguity "not guaranteeing" a specific order.

QuestionBurning open file to CD/DVD Pin
Member 103095672-Nov-13 1:34
Member 103095672-Nov-13 1:34 
AnswerRe: Burning open file to CD/DVD Pin
Dave Kreskowiak2-Nov-13 9:20
mveDave Kreskowiak2-Nov-13 9:20 
GeneralRe: Burning open file to CD/DVD Pin
Member 103095672-Nov-13 9:45
Member 103095672-Nov-13 9:45 
AnswerRe: Burning open file to CD/DVD Pin
TnTinMn3-Nov-13 11:58
TnTinMn3-Nov-13 11:58 
QuestionComparing a name inputted against a database of names Pin
JacksonVF1-Nov-13 22:56
JacksonVF1-Nov-13 22:56 
AnswerRe: Comparing a name inputted against a database of names Pin
Mycroft Holmes2-Nov-13 1:21
professionalMycroft Holmes2-Nov-13 1:21 
GeneralRe: Comparing a name inputted against a database of names Pin
JacksonVF2-Nov-13 2:45
JacksonVF2-Nov-13 2:45 
AnswerRe: Comparing a name inputted against a database of names Pin
jschell2-Nov-13 6:49
jschell2-Nov-13 6:49 
AnswerRe: Comparing a name inputted against a database of names Pin
PIEBALDconsult4-Nov-13 4:11
mvePIEBALDconsult4-Nov-13 4:11 
Questionsingle chat TCP, Console C# Pin
Member 103468781-Nov-13 19:01
Member 103468781-Nov-13 19:01 
AnswerRe: single chat TCP, Console C# Pin
Mycroft Holmes1-Nov-13 22:10
professionalMycroft Holmes1-Nov-13 22:10 
GeneralRe: single chat TCP, Console C# Pin
Dave Kreskowiak2-Nov-13 9:12
mveDave Kreskowiak2-Nov-13 9:12 
QuestionPage_init with variable Pin
vkEE1-Nov-13 8:14
vkEE1-Nov-13 8:14 
SuggestionRe: Page_init with variable Pin
Matt T Heffron1-Nov-13 13:25
professionalMatt T Heffron1-Nov-13 13:25 
QuestionI have a problem regarding my project. thanks for answering this :)) Pin
josephdalebert1-Nov-13 6:50
josephdalebert1-Nov-13 6:50 
AnswerRe: I have a problem regarding my project. thanks for answering this :)) Pin
Richard Andrew x641-Nov-13 13:50
professionalRichard Andrew x641-Nov-13 13:50 
GeneralRe: I have a problem regarding my project. thanks for answering this :)) Pin
josephdalebert2-Nov-13 22:13
josephdalebert2-Nov-13 22:13 

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.