Array vs Collection
-
Just a simple question :) Is System.Array a collection ? If it is, then why doesnt it come in the System.Collections namespace ??
The name is Sandeep
System.Array
is a collection, it also implementsSystem.Collections.ICollection
.Xandip wrote:
If it is, then why doesnt it come in the System.Collections namespace ??
Because somone in Microsoft decided it would be best sitted in the
System
namespace! Possibly this is because it has a close natural affinity with the primative (_object_[]
type) arrays.CCC solved so far: 2 (including a Hard One!) 37!?!! - Randall, Clerks
-
Just a simple question :) Is System.Array a collection ? If it is, then why doesnt it come in the System.Collections namespace ??
The name is Sandeep
If you create your own collection, would you put it there?