Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

typed arraylist versus typed collection

Status
Not open for further replies.

varshan09

Programmer
Oct 28, 2003
45
0
0
IN
Hi,
Is use of typed arraylist versus typed collection is preferred? I'm using for transferring data from one application domain to other.

Please clarify.

Thanks
Varsha
 
I don't believe .Net 1.1 has a typed array list. I believe there may be something similar in 2.0, but going by a different name. I guess the same thing would be true for collection as far as not being typed, although you can make a collection class by inheriting CollectionBase and using .Add methods to restrict your type. But as far as collections and arraylists, they both have different options. Collections can be keyed, which would probably added up to more overhead, although you may not notice a speed decrease at all. You'll just have to test it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top