Click here to Skip to main content
16,011,436 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is this datastructure okay or just plain crazy? Pin
Guffa11-Apr-08 15:07
Guffa11-Apr-08 15:07 
AnswerRe: Is this datastructure okay or just plain crazy? Pin
PIEBALDconsult11-Apr-08 9:51
mvePIEBALDconsult11-Apr-08 9:51 
GeneralRe: Is this datastructure okay or just plain crazy? Pin
Luc Pattyn11-Apr-08 9:57
sitebuilderLuc Pattyn11-Apr-08 9:57 
GeneralRe: Is this datastructure okay or just plain crazy? Pin
GuyThiebaut11-Apr-08 10:23
professionalGuyThiebaut11-Apr-08 10:23 
GeneralRe: Is this datastructure okay or just plain crazy? Pin
Luc Pattyn11-Apr-08 10:36
sitebuilderLuc Pattyn11-Apr-08 10:36 
GeneralRe: Is this datastructure okay or just plain crazy? Pin
PIEBALDconsult11-Apr-08 13:19
mvePIEBALDconsult11-Apr-08 13:19 
GeneralRe: Is this datastructure okay or just plain crazy? Pin
Luc Pattyn11-Apr-08 13:55
sitebuilderLuc Pattyn11-Apr-08 13:55 
AnswerRe: Is this datastructure okay or just plain crazy? Pin
Guffa11-Apr-08 14:59
Guffa11-Apr-08 14:59 
Unless you are stuck with framework 1.x, don't use the ArrayList class. It's obsolete.

Instead of storing different types of data in ArrayLists, make objects to store the data in, and make generic lists to store objects in.

List<C1> - contains N members

  class C1 - contains:
    3 strings
    1 List<C2> - contains N members

      class C2 - contains:
        1 sting
        1 byte
        1 DateTime


This way you get rid of the boxing involved with storing value types in an ArrayList, the overhead of using ArrayLists only to store different kind of data, and you gain strict typing.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Is this datastructure okay or just plain crazy? Pin
GuyThiebaut14-Apr-08 9:36
professionalGuyThiebaut14-Apr-08 9:36 
GeneralUser Cannot See Form Objects Pin
PhilDanger11-Apr-08 7:57
PhilDanger11-Apr-08 7:57 
GeneralRe: User Cannot See Form Objects Pin
Big Daddy Farang11-Apr-08 11:21
Big Daddy Farang11-Apr-08 11:21 
GeneralRe: User Cannot See Form Objects Pin
Christian Graus11-Apr-08 13:11
protectorChristian Graus11-Apr-08 13:11 
Generalexcel/C# Pin
tonying11-Apr-08 7:20
tonying11-Apr-08 7:20 
GeneralRe: excel/C# Pin
Judah Gabriel Himango11-Apr-08 7:23
sponsorJudah Gabriel Himango11-Apr-08 7:23 
GeneralRe: excel/C# Pin
parth.p11-Apr-08 7:59
parth.p11-Apr-08 7:59 
GeneralRe: excel/C# Pin
MarkB77711-Apr-08 13:15
MarkB77711-Apr-08 13:15 
GeneralTable Adapter Object Pin
ctrlnick11-Apr-08 7:17
ctrlnick11-Apr-08 7:17 
QuestionHow to display empty folder in after deployed. Pin
bruze11-Apr-08 6:52
bruze11-Apr-08 6:52 
General[Message Deleted] Pin
bruze11-Apr-08 5:53
bruze11-Apr-08 5:53 
GeneralRe: How to Disply the Empty folder in After Deployed Pin
Abhijit Jana11-Apr-08 6:09
professionalAbhijit Jana11-Apr-08 6:09 
GeneralInteracting with Messenger Pin
rcollina11-Apr-08 4:34
rcollina11-Apr-08 4:34 
GeneralRe: Interacting with Messenger Pin
Luis Alonso Ramos11-Apr-08 11:46
Luis Alonso Ramos11-Apr-08 11:46 
GeneralThread Safety Question: How to 'Safely' Change the Values of Multiple Static Variables at Once [modified] Pin
Waleed Eissa11-Apr-08 3:25
Waleed Eissa11-Apr-08 3:25 
GeneralRe: Thread Safety Question: How to 'Safely' Change the Values of Multiple Static Variables at Once Pin
PIEBALDconsult11-Apr-08 3:40
mvePIEBALDconsult11-Apr-08 3:40 
GeneralRe: Thread Safety Question: How to 'Safely' Change the Values of Multiple Static Variables at Once Pin
N a v a n e e t h11-Apr-08 3:42
N a v a n e e t h11-Apr-08 3:42 

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.