Which is more efficient? Anyone know?

  • Thread starter Thread starter b0yce
  • Start date Start date
B

b0yce

Just a query to see if anyone can tell me. Which is the quicker/best way of
a handling Type-Safe collections/Dictionaries?

1) Create a Custom Collection/Dictionary derived from
CollectionBase/DictionaryBase and implement as necessary - including
Type-Safe methods.

or - the lazier

2) Create a class, that has an internal Collection\Dictionary that is
added/removed from via implemented methods that are Type-Safe.

Anyone care to suggest?
 
b0yce said:
Just a query to see if anyone can tell me. Which is the quicker/best way of
a handling Type-Safe collections/Dictionaries?

1) Create a Custom Collection/Dictionary derived from
CollectionBase/DictionaryBase and implement as necessary - including
Type-Safe methods.

or - the lazier

2) Create a class, that has an internal Collection\Dictionary that is
added/removed from via implemented methods that are Type-Safe.
Well, this is basically al lthat CollectionBase and DictionaryBase does, it
provides an InnerList and InnerHashtable, respectivly, that you can write
your typesafe methods against.

If your looking for performance, you are better off getting a collection gen
util, the performance differences are significant.
 
Back
Top