collectionbase.item

  • Thread starter Thread starter Tim Murphy
  • Start date Start date
T

Tim Murphy

When creating a collection class that inherits CollectionBase what advantage
is there for the Item property returning CType(List.Item(index),
<objecttype> ) over List.Item(index).

Looking at the help file I guess speed and that's a good thing but what is
the point when if you use "for each ... next" the Item property is NOT used.

Surely most collections are accessed via "for each ... next" as opposed to
"for nItem = 0 to nItems". Am I wrong?

Is there a way to strongly type the return type in the "for each .... next"
routine?

Tim
 
I need a more info. CollectionBase does not have an Indexer method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top