Array Segments

Link. November 15, 2007. Comments [0]. Posted in: .NET

The ArraySegment<T> 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.



Comments are closed.

About

Tomas Restrepo is a software developer located in Colombia, South America. His interests include .NET, Connected Systems, PowerShell and lately dynamic programming languages. More...

tomasrestrepo @ twitter My Flickr photostream My saved links on delicious My Technorati Profile

email: tomas@winterdom.com
msn: tomasr@passport.com

View my profile on LinkedIn

MVP logo

Syndicate

Ads


Links

Categories

Statistics

Total Posts: 1020
This Year: 90
This Month: 9
This Week: 0
Comments: 791

Blogroll

Post Archive

Other

Copyright © 2002-2008, Tomas Restrepo.

Powered by: newtelligence dasBlog 2.1.8102.813

Sign In