Explanation Array / Collection for newbie

D

dotNETnews

As I know Arrays are collections that can store even objects if the type of
Array is Object.

Other Colletions are base Collection class, Array List, Sorted list,
Queue...

But this book I'm reading has two seperate chapters. First is Array and
second is Collections. Why is that if Arrays are Collections? Confusing...

I also noticed that Array class is in Sysem namespace and other collections
are in Collection namespace which confused me even more.
 
C

Cor Ligthert

I also noticed that Array class is in Sysem namespace and other
collections
are in Collection namespace which confused me even more.

Why the datatable class which is as well a collection is in the system.data
class, there are just a lot of Array/Collections.

For me is an array one dimmensional and a collection more dimmensional.
Although when you add a (from a class instanced) object too an array it is
again multidimensional.

Just some names.

I hope this gives an idea.

Cor
 

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

Top