arraylists or class?

  • Thread starter Thread starter PhatTim
  • Start date Start date
P

PhatTim

Hi, just a general question: my coworker and I have a question
regarding the most efficient way to track a bunch of data in our
windows form application. We have six arraylists declared in the base
class and copies of each set in all the usercontrols that we have on
the form. The original six are passed as references to every
usercontrol that needs it. While I don't like maintaining six different
arraylists in every usercontrol that we have and would like to group
them all in one class and share the one class, my coworker thinks this
will drain resources and that six separate arraylists is the most
effiicient way to do it. Any thoughts? Thanks for your suggestions.
 
PhatTim said:
Hi, just a general question: my coworker and I have a question
regarding the most efficient way to track a bunch of data in our
windows form application. We have six arraylists declared in the base
class and copies of each set in all the usercontrols that we have on
the form. The original six are passed as references to every
usercontrol that needs it. While I don't like maintaining six different
arraylists in every usercontrol that we have and would like to group
them all in one class and share the one class, my coworker thinks this
will drain resources and that six separate arraylists is the most
effiicient way to do it. Any thoughts? Thanks for your suggestions.

I take it that you don't really copy the lists, just the references to them.
How does your colleague think that it would drain resources to put all the
lists in a single object?
I think that you are right on this one.
A strongly typed DataSet may be better though.
 
PhatTim,

What are your colegue's grounds to think that having all lists together will
drain resources?
 
Back
Top