Groups | Blog | Home
all groups > dotnet windows forms > march 2006 >

dotnet windows forms : arraylists or class?


PhatTim
3/2/2006 8:21:49 PM
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.
Nick Hounsome
3/3/2006 12:00:00 AM

[quoted text, click to view]

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.

Stoitcho Goutsev (100)
3/3/2006 9:11:48 AM
PhatTim,

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


--

Stoitcho Goutsev (100)

[quoted text, click to view]

AddThis Social Bookmark Button