Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: Help access image from the internet Pin
Alex_xso14-May-09 8:21
Alex_xso14-May-09 8:21 
GeneralRe: Help access image from the internet Pin
Dave Kreskowiak14-May-09 17:51
mveDave Kreskowiak14-May-09 17:51 
QuestionHow does one have mdichildren forms automatically sized to fit the parent form? Pin
Lecutus113-May-09 9:06
Lecutus113-May-09 9:06 
AnswerRe: How does one have mdichildren forms automatically sized to fit the parent form? Pin
DaveyM6913-May-09 10:55
professionalDaveyM6913-May-09 10:55 
GeneralRe: How does one have mdichildren forms automatically sized to fit the parent form? Pin
Lecutus114-May-09 8:41
Lecutus114-May-09 8:41 
GeneralRe: How does one have mdichildren forms automatically sized to fit the parent form? Pin
DaveyM6915-May-09 4:38
professionalDaveyM6915-May-09 4:38 
QuestionSortedList, Key as element of Value Pin
Aaron Hartley13-May-09 8:37
Aaron Hartley13-May-09 8:37 
AnswerRe: SortedList, Key as element of Value Pin
OriginalGriff13-May-09 8:51
mveOriginalGriff13-May-09 8:51 
Yes, the model is stored twice. But I think that is right and proper. I would not be happy removing "model" from "Product" as it is obviously a proper part of the data. Equally, it is a very sensible key for your sorted list.
You could save space (and maybe some processing time, but I doubt it) by using the hash value of the model string as the key, but then it is unlikely that the sort order would be the same. I assume you are using a SortedList because you want to iterate in model order - so the model itself has to be the key.
I would live with this. Removing "model" from "Product" means that that infromation is incomplete when processing in methods that don't know about your list.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

GeneralRe: SortedList, Key as element of Value Pin
Aaron Hartley13-May-09 9:40
Aaron Hartley13-May-09 9:40 
GeneralRe: SortedList, Key as element of Value Pin
OriginalGriff13-May-09 9:49
mveOriginalGriff13-May-09 9:49 
AnswerRe: SortedList, Key as element of Value Pin
Luc Pattyn13-May-09 9:24
sitebuilderLuc Pattyn13-May-09 9:24 
GeneralRe: SortedList, Key as element of Value Pin
Aaron Hartley13-May-09 9:46
Aaron Hartley13-May-09 9:46 
GeneralRe: SortedList, Key as element of Value Pin
OriginalGriff13-May-09 9:51
mveOriginalGriff13-May-09 9:51 
AnswerRe: SortedList, Key as element of Value Pin
Kythen13-May-09 9:31
Kythen13-May-09 9:31 
QuestionC# Console Application Pin
bigjoe11a13-May-09 7:49
bigjoe11a13-May-09 7:49 
AnswerRe: C# Console Application Pin
Jimmanuel13-May-09 8:10
Jimmanuel13-May-09 8:10 
GeneralRe: C# Console Application Pin
bigjoe11a13-May-09 8:17
bigjoe11a13-May-09 8:17 
GeneralRe: C# Console Application Pin
Jimmanuel13-May-09 8:38
Jimmanuel13-May-09 8:38 
GeneralRe: C# Console Application Pin
bigjoe11a13-May-09 10:00
bigjoe11a13-May-09 10:00 
GeneralRe: C# Console Application Pin
Jimmanuel13-May-09 11:33
Jimmanuel13-May-09 11:33 
GeneralRe: C# Console Application Pin
OriginalGriff13-May-09 8:43
mveOriginalGriff13-May-09 8:43 
GeneralRe: C# Console Application Pin
bigjoe11a13-May-09 10:26
bigjoe11a13-May-09 10:26 
GeneralRe: C# Console Application Pin
OriginalGriff13-May-09 22:24
mveOriginalGriff13-May-09 22:24 
GeneralRe: C# Console Application Pin
bigjoe11a14-May-09 4:12
bigjoe11a14-May-09 4:12 
GeneralRe: C# Console Application Pin
OriginalGriff14-May-09 4:31
mveOriginalGriff14-May-09 4:31 

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.