Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
AnswerRe: Converting Array To Dictionary Pin
John Torjo16-Mar-16 11:22
professionalJohn Torjo16-Mar-16 11:22 
GeneralRe: Converting Array To Dictionary Pin
MadDashCoder16-Mar-16 11:32
MadDashCoder16-Mar-16 11:32 
AnswerRe: Converting Array To Dictionary Pin
Matt T Heffron16-Mar-16 11:47
professionalMatt T Heffron16-Mar-16 11:47 
AnswerRe: Converting Array To Dictionary Pin
Mathi Mani16-Mar-16 11:47
Mathi Mani16-Mar-16 11:47 
GeneralRe: Converting Array To Dictionary Pin
MadDashCoder16-Mar-16 12:04
MadDashCoder16-Mar-16 12:04 
SuggestionRe: Converting Array To Dictionary Pin
Sascha Lefèvre16-Mar-16 11:56
professionalSascha Lefèvre16-Mar-16 11:56 
SuggestionRe: Converting Array To Dictionary Pin
Richard Deeming17-Mar-16 1:58
mveRichard Deeming17-Mar-16 1:58 
AnswerRe: Converting Array To Dictionary Pin
Luc Pattyn17-Mar-16 7:41
sitebuilderLuc Pattyn17-Mar-16 7:41 
The fixed size array is a nono, this is where you should use some kind of a collection, probablye the List<Product> Matt already suggested.

But if you know beforehand you will need a Dictionary (not sure you do!) maybe you could stuff the fresh products in the dictionary right away?

Smile | :)

PS: your Product class deserves to have a constructor that takes the basic values as parameters...

PS2: ... as well as a ToString() to return a formatted representation of itself.
Luc Pattyn [My Articles] Nil Volentibus Arduum

QuestionMessage Removed Pin
16-Mar-16 5:35
professionalN_tro_P16-Mar-16 5:35 
AnswerRe: Field Naming Pin
OriginalGriff16-Mar-16 5:55
mveOriginalGriff16-Mar-16 5:55 
GeneralRe: Field Naming Pin
Pete O'Hanlon16-Mar-16 6:36
mvePete O'Hanlon16-Mar-16 6:36 
GeneralRe: Field Naming Pin
OriginalGriff16-Mar-16 6:41
mveOriginalGriff16-Mar-16 6:41 
GeneralMessage Removed Pin
16-Mar-16 7:52
professionalN_tro_P16-Mar-16 7:52 
GeneralRe: Field Naming Pin
jsc4217-Mar-16 23:06
professionaljsc4217-Mar-16 23:06 
GeneralRe: Field Naming Pin
OriginalGriff16-Mar-16 6:47
mveOriginalGriff16-Mar-16 6:47 
AnswerRe: Field Naming Pin
Gerry Schmitz16-Mar-16 6:45
mveGerry Schmitz16-Mar-16 6:45 
GeneralMessage Removed Pin
16-Mar-16 8:13
professionalN_tro_P16-Mar-16 8:13 
GeneralRe: Field Naming Pin
Gerry Schmitz16-Mar-16 9:08
mveGerry Schmitz16-Mar-16 9:08 
AnswerRe: Field Naming Pin
Sascha Lefèvre16-Mar-16 7:49
professionalSascha Lefèvre16-Mar-16 7:49 
GeneralMessage Removed Pin
16-Mar-16 8:04
professionalN_tro_P16-Mar-16 8:04 
GeneralRe: Field Naming Pin
Sascha Lefèvre16-Mar-16 8:44
professionalSascha Lefèvre16-Mar-16 8:44 
GeneralMessage Removed Pin
16-Mar-16 8:47
professionalN_tro_P16-Mar-16 8:47 
GeneralRe: Field Naming Pin
Sascha Lefèvre16-Mar-16 8:54
professionalSascha Lefèvre16-Mar-16 8:54 
GeneralMessage Removed Pin
17-Mar-16 3:34
professionalN_tro_P17-Mar-16 3:34 
GeneralRe: Field Naming Pin
OriginalGriff16-Mar-16 9:15
mveOriginalGriff16-Mar-16 9:15 

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.