Click here to Skip to main content
15,907,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: Do I need to create a struct? Pin
Saksida Bojan14-Dec-09 6:14
Saksida Bojan14-Dec-09 6:14 
GeneralRe: Do I need to create a struct? Pin
Keith Barrow14-Dec-09 6:40
professionalKeith Barrow14-Dec-09 6:40 
GeneralRe: Do I need to create a struct? Pin
bbranded14-Dec-09 7:27
bbranded14-Dec-09 7:27 
GeneralRe: Do I need to create a struct? Pin
Keith Barrow14-Dec-09 8:03
professionalKeith Barrow14-Dec-09 8:03 
GeneralRe: Do I need to create a struct? Pin
bbranded14-Dec-09 8:07
bbranded14-Dec-09 8:07 
GeneralRe: Do I need to create a struct? Pin
Keith Barrow14-Dec-09 8:18
professionalKeith Barrow14-Dec-09 8:18 
GeneralRe: Do I need to create a struct? Pin
bbranded14-Dec-09 8:37
bbranded14-Dec-09 8:37 
GeneralRe: Do I need to create a struct? Pin
Keith Barrow15-Dec-09 1:16
professionalKeith Barrow15-Dec-09 1:16 
No (or not much) to the first, yes to the second. It really depends upon what you are doing to determine which is most efficient, and that can only be done through testing. If my memory serves, in earlier versions of the famework (2.0) there was a noticable performance gap between List<T> and T[]. This was closed up in 3.0, so the performances are similar. I could be confusing this with .NET Reflection however Smile | :)

Using the lists is considered good practice as it is easier to use, also these are more widespread so developers are used to seeing the code.

The real answer to your question I suppose is to write the code using List and judge performance from there. If the performance of your code is poor, run a profiler to see if it is the list operations ar e causing it. If so, replace your code with arrays and see what happens.

CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks

AnswerRe: Do I need to create a struct? Pin
Luc Pattyn14-Dec-09 6:15
sitebuilderLuc Pattyn14-Dec-09 6:15 
QuestionSending CSV file when form fillout. Pin
zjaffary14-Dec-09 5:00
zjaffary14-Dec-09 5:00 
AnswerRe: Sending CSV file when form fillout. Pin
Saksida Bojan14-Dec-09 6:06
Saksida Bojan14-Dec-09 6:06 
QuestionAuthentication in a console application Pin
vinothkumar_Dhakshinamoorthy14-Dec-09 3:59
vinothkumar_Dhakshinamoorthy14-Dec-09 3:59 
AnswerRe: Authentication in a console application Pin
#realJSOP14-Dec-09 4:28
professional#realJSOP14-Dec-09 4:28 
Questionbackup Pin
farokhian14-Dec-09 3:47
farokhian14-Dec-09 3:47 
Questionthe Registry and DOS commands Pin
Antonio JVS14-Dec-09 2:40
Antonio JVS14-Dec-09 2:40 
AnswerRe: the Registry and DOS commands Pin
Md. Marufuzzaman14-Dec-09 3:01
professionalMd. Marufuzzaman14-Dec-09 3:01 
GeneralRe: the Registry and DOS commands Pin
Antonio JVS14-Dec-09 3:47
Antonio JVS14-Dec-09 3:47 
AnswerRe: the Registry and DOS commands Pin
S. Brozius14-Dec-09 3:18
S. Brozius14-Dec-09 3:18 
AnswerRe: the Registry and DOS commands [modified] Pin
EliottA14-Dec-09 3:28
EliottA14-Dec-09 3:28 
GeneralRe: the Registry and DOS commands Pin
Antonio JVS14-Dec-09 3:54
Antonio JVS14-Dec-09 3:54 
GeneralRe: the Registry and DOS commands Pin
EliottA14-Dec-09 4:08
EliottA14-Dec-09 4:08 
QuestionHow to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:00
CoderForEver14-Dec-09 2:00 
AnswerRe: How to read a file from any kind of documents and display its contents? PinPopular
OriginalGriff14-Dec-09 2:06
mveOriginalGriff14-Dec-09 2:06 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
CoderForEver14-Dec-09 2:42
CoderForEver14-Dec-09 2:42 
GeneralRe: How to read a file from any kind of documents and display its contents? Pin
#realJSOP14-Dec-09 2:51
professional#realJSOP14-Dec-09 2:51 

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.