The ArraySegment struct in .NET 2.0 was a very smart idea. But has anyone else wondered just why the heck it doesn't implement a zero-based indexer itself and an enumerator that returns just the elements in the array segment?

I mean, honestly, without those, all ArraySegment does is saving you from passing a couple of parameters around, but doesn't make the code any simpler at all.

Technorati tags:


Tomas Restrepo

Software developer located in Colombia.