Click here to Skip to main content
15,886,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: ordered list as in python Pin
Nicholas Marty27-Dec-13 3:50
professionalNicholas Marty27-Dec-13 3:50 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 4:08
gianfrancoguzzo27-Dec-13 4:08 
GeneralRe: ordered list as in python Pin
Nicholas Marty27-Dec-13 4:11
professionalNicholas Marty27-Dec-13 4:11 
GeneralMessage Closed Pin
27-Dec-13 4:01
gianfrancoguzzo27-Dec-13 4:01 
GeneralRe: ordered list as in python Pin
Nicholas Marty27-Dec-13 4:06
professionalNicholas Marty27-Dec-13 4:06 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 4:10
gianfrancoguzzo27-Dec-13 4:10 
AnswerRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 3:43
gianfrancoguzzo27-Dec-13 3:43 
GeneralRe: ordered list as in python Pin
BillWoodruff27-Dec-13 13:02
professionalBillWoodruff27-Dec-13 13:02 
Whether a SortedDictionary, or a SortedList, is "right," depends on the requirements of your code.

Does the solution you are creating require frequent immediate access to a sorted collection of data, and is that data "coming in" in a way where it's "unsorted" ?

If that's the scenario, then perhaps you are required to sort the data every time you add a new item to it.

On the other hand, if your need for access to sorted data is intermittent, perhaps you'll get better performance if you sort on demand.

Keep in mind that a SortedList is a collection of Key/Value Pairs, and there is a cost in memory, and computation, for maintaining it compared to a simple Generic List, just as there is for using a SortedDictionary.
“I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.'

As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'”

Vincent Van Gogh

AnswerRe: ordered list as in python Pin
BillWoodruff27-Dec-13 4:04
professionalBillWoodruff27-Dec-13 4:04 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 4:17
gianfrancoguzzo27-Dec-13 4:17 
GeneralRe: ordered list as in python Pin
BillWoodruff27-Dec-13 11:32
professionalBillWoodruff27-Dec-13 11:32 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo27-Dec-13 15:06
gianfrancoguzzo27-Dec-13 15:06 
GeneralRe: ordered list as in python Pin
gianfrancoguzzo29-Dec-13 2:00
gianfrancoguzzo29-Dec-13 2:00 
QuestionConsole.WriteLine properties of something Pin
Dick Lasy27-Dec-13 2:06
Dick Lasy27-Dec-13 2:06 
AnswerRe: Console.WriteLine properties of something Pin
Richard MacCutchan27-Dec-13 3:38
mveRichard MacCutchan27-Dec-13 3:38 
AnswerRe: Console.WriteLine properties of something Pin
BillWoodruff27-Dec-13 3:39
professionalBillWoodruff27-Dec-13 3:39 
AnswerRe: Console.WriteLine properties of something Pin
Vinay Jade27-Dec-13 4:39
professionalVinay Jade27-Dec-13 4:39 
GeneralRe: Console.WriteLine properties of something Pin
Dick Lasy27-Dec-13 4:49
Dick Lasy27-Dec-13 4:49 
GeneralRe: Console.WriteLine properties of something Pin
Dick Lasy27-Dec-13 23:36
Dick Lasy27-Dec-13 23:36 
QuestionGenerate hyperlink to file Pin
piet kouwer26-Dec-13 21:06
piet kouwer26-Dec-13 21:06 
AnswerRe: Generate hyperlink to file Pin
Richard MacCutchan26-Dec-13 22:33
mveRichard MacCutchan26-Dec-13 22:33 
GeneralRe: Generate hyperlink to file Pin
piet kouwer26-Dec-13 22:41
piet kouwer26-Dec-13 22:41 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan26-Dec-13 23:17
mveRichard MacCutchan26-Dec-13 23:17 
GeneralRe: Generate hyperlink to file Pin
piet kouwer27-Dec-13 0:07
piet kouwer27-Dec-13 0:07 
GeneralRe: Generate hyperlink to file Pin
Richard MacCutchan27-Dec-13 0:10
mveRichard MacCutchan27-Dec-13 0:10 

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.