G
Guest
I'm looking for some advice from more experienced .netters. I would
like to use a Factory Pattern that accepts an ID number and returns an
object. As I may have a large pool of objects to choose from, I'm
trying to figure out the best strategy in retrieving the needed object.
The application is a stand-alone client. I'm considering a hashtable
that would populate at start-up. The key would be the ID and the value
would be the object. Each object would contain about 20
properties/members. Eventually, the number of objects could reach
about a hundred--possibly more.
Anyone have comments about this approach?
Thanks,
Eric
like to use a Factory Pattern that accepts an ID number and returns an
object. As I may have a large pool of objects to choose from, I'm
trying to figure out the best strategy in retrieving the needed object.
The application is a stand-alone client. I'm considering a hashtable
that would populate at start-up. The key would be the ID and the value
would be the object. Each object would contain about 20
properties/members. Eventually, the number of objects could reach
about a hundred--possibly more.
Anyone have comments about this approach?
Thanks,
Eric